lehrkraefte:blc:informatik:glf4-24:bash-install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lehrkraefte:blc:informatik:glf4-24:bash-install [2024/03/22 16:25]
Ivo Blöchliger [Automatisches Setup]
lehrkraefte:blc:informatik:glf4-24:bash-install [2024/04/03 09:23] (current)
Ivo Blöchliger [Automatisches Setup]
Line 41: Line 41:
 <code powershell ofi-setup.ps1> <code powershell ofi-setup.ps1>
 New-Item c:\ofi -ItemType Directory -ea 0 New-Item c:\ofi -ItemType Directory -ea 0
-if (!(Test-Path c:\ofi\PortableGit.7z.exe)) { 
-        echo "Please wait while downloading..." 
- Invoke-WebRequest -Uri "https://github.com/git-for-windows/git/releases/download/v2.44.0.windows.1/PortableGit-2.44.0-64-bit.7z.exe" -OutFile c:\ofi\PortableGit.7z.exe 
-} else { 
-        echo "Portable git is already downloaded" 
-} 
 if (!(Test-Path C:\ofi\PortableGit\git-bash.exe)) { if (!(Test-Path C:\ofi\PortableGit\git-bash.exe)) {
-        echo "Please click OK!"+        if (!(Test-Path c:\ofi\PortableGit.7z.exe)) { 
 +                echo "Please wait while downloading..." 
 +         Invoke-WebRequest -Uri "https://github.com/git-for-windows/git/releases/download/v2.44.0.windows.1/PortableGit-2.44.0-64-bit.7z.exe" -OutFile c:\ofi\PortableGit.7z.exe 
 +        } else { 
 +                echo "Portable git Installer is already downloaded" 
 +        } 
 + 
 +        echo "Please click OK to install Git-Bash"
  cd c:\ofi  cd c:\ofi
  Invoke-Expression .\PortableGit.7z.exe  Invoke-Expression .\PortableGit.7z.exe
  • lehrkraefte/blc/informatik/glf4-24/bash-install.1711121114.txt.gz
  • Last modified: 2024/03/22 16:25
  • by Ivo Blöchliger