mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 13:56:47 +00:00
adding pester tests
This commit is contained in:
19
images/win/scripts/Installers/Configure-Shell.ps1
Normal file
19
images/win/scripts/Installers/Configure-Shell.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
# Create shells folder
|
||||
$shellPath = "C:\shells"
|
||||
New-Item -Path $shellPath -ItemType Directory | Out-Null
|
||||
|
||||
# sh and bash <--> C:\msys64\usr\bin\bash.exe
|
||||
New-Item -ItemType SymbolicLink -Path "$shellPath\bash.exe" -Target "C:\msys64\usr\bin\bash.exe" | Out-Null
|
||||
New-Item -ItemType SymbolicLink -Path "$shellPath\sh.exe" -Target "C:\msys64\usr\bin\sh.exe" | Out-Null
|
||||
|
||||
# winbash <--> C:\Windows\System32\bash.exe
|
||||
New-Item -ItemType SymbolicLink -Path "$shellPath\winbash.exe" -Target "$env:SystemRoot\System32\bash.exe" | Out-Null
|
||||
|
||||
# git4bash <--> C:\Program Files\Git\bin\bash.exe
|
||||
New-Item -ItemType SymbolicLink -Path "$shellPath\git4bash.exe" -Target "$env:ProgramFiles\Git\bin\bash.exe" | Out-Null
|
||||
|
||||
# MSYS2 <--> C:\msys64\usr\bin\bash.exe
|
||||
New-Item -ItemType SymbolicLink -Path "$shellPath\msys2.exe" -Target "C:\msys64\usr\bin\bash.exe" | Out-Null
|
||||
|
||||
# Add shells to PATH
|
||||
Add-MachinePathItem $shellPath
|
||||
Reference in New Issue
Block a user