diff --git a/Install.ps1 b/Install.ps1 index 099c2748f20e7fc9f3153951c1dfcc71124ef2f9..df22c3c158e723a2ec2600bbc49607472aee893a 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -28,7 +28,7 @@ if(Is-Installed("just-install")) { if(Is-Installed("git")) { "git is already installed" } else { - Start-Process -NoNewWindow just-install -Wait -ArgumentList 'python3' + Start-Process -NoNewWindow just-install -Wait -ArgumentList 'git' } "Make some sanity checks in the environment - verify python and git are located where we think they are..." diff --git a/README.md b/README.md index b22ed3eafd8bfe62f19fc45080d832e7b4d0305c..c29e3dbb9d7c8aafbd46b8a90a53b42b7c942314 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,19 @@ # bootstrap-git Use this repository to bootstrap git on your windows box. -It also automatically creates a key pair that can be used to connect to a git server. + +## Usage Be careful, this executes code directly on your machine. You are expected to read the script before you execute it. ```powershell Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://lab.it.hs-hannover.de/powershell/bootstrap-git/raw/master/Install.ps1')) ``` + +## What it does in detail + +* The script install [just-install](https://just-install.it/), if not present. +* Afterwards it install git, if not present. +* Finally it creates an ssh keypair located in `C:\hshgitlab\id_rsa` and `C:\hshgitlab\id_rsa.pub` +* It also prints the public key on your console in the end. +