2
0

wslrun.cmd 411 B

1234567891011
  1. @echo off
  2. REM Usage: wslrun.cmd <bash command>
  3. REM Runs the given command in the Windows Subsystem for Linux bash shell.
  4. REM Locate bash.exe
  5. REM 32/64 bits causes issues here because it actually redirects the System32 dir
  6. set BASH=bash.exe
  7. if exist C:\Windows\System32\bash.exe set BASH=C:\Windows\System32\bash.exe
  8. if exist C:\Windows\Sysnative\bash.exe set BASH=C:\Windows\Sysnative\bash.exe
  9. %BASH% -c "%*"