diff --git a/scripts/wsl/lollms_petals_installer.bat b/scripts/wsl/lollms_petals_installer.bat index 77edfa51..f5e9f8eb 100644 --- a/scripts/wsl/lollms_petals_installer.bat +++ b/scripts/wsl/lollms_petals_installer.bat @@ -4,10 +4,9 @@ wsl --list >nul 2>&1 if %errorlevel% neq 0 ( echo WSL is not installed. Installing... - wsl --install -e - wsl --set-default-version 2 echo Installing Ubuntu 20.04 LTS... - wsl --install -d Ubuntu-20.04 -e + wsl --install -d Ubuntu-20.04 + wsl --set-default-version 2 ) else ( echo WSL is already installed. ) @@ -15,4 +14,5 @@ if %errorlevel% neq 0 ( :: Execute the .sh script wsl.exe -d Ubuntu-20.04 ./install_script.sh -echo Installation and script execution complete! \ No newline at end of file +echo Installation and script execution complete! +pause \ No newline at end of file diff --git a/scripts/wsl/lollms_petals_installer.bat.bak b/scripts/wsl/lollms_petals_installer.bat.bak new file mode 100644 index 00000000..77edfa51 --- /dev/null +++ b/scripts/wsl/lollms_petals_installer.bat.bak @@ -0,0 +1,18 @@ +@echo off + +:: Check if WSL is installed +wsl --list >nul 2>&1 +if %errorlevel% neq 0 ( + echo WSL is not installed. Installing... + wsl --install -e + wsl --set-default-version 2 + echo Installing Ubuntu 20.04 LTS... + wsl --install -d Ubuntu-20.04 -e +) else ( + echo WSL is already installed. +) + +:: Execute the .sh script +wsl.exe -d Ubuntu-20.04 ./install_script.sh + +echo Installation and script execution complete! \ No newline at end of file