generated from Merritt-Brian/tutorial-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwsl.bat
30 lines (26 loc) · 869 Bytes
/
wsl.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
:: Check if WSL is installed
where wsl >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo WSL is not installed on this system. Please visit the link below to install:
echo https://learn.microsoft.com/en-us/windows/wsl/install
pause
exit /b
)
:: Change directory to where the script is located if needed
:: cd /path/to/your/script
:: Execute the bash script in WSL
echo Running install.sh in WSL...
@REM wsl.exe -u root apt update
echo Downloading install.sh from GitHub...
wsl.exe wget -O ~/install.sh https://raw.githubusercontent.com/jhuapl-bio/omics_workshop/main/install.sh
wsl.exe chmod +x ~/install.sh
@REM wsl.exe bash -c "bash install.sh"
wsl.exe ~/install.sh
if %ERRORLEVEL% neq 0 (
echo There was an error executing install.sh.
pause
exit /b
)
echo Bash script execution completed successfully.
pause