Download update_wsl.bat from Snotacus/textgen: direct link, hf CLI and curl.
- Browser
- Download file 285 Bytes
-
https://huggingface.co/spaces/Snotacus/textgen/resolve/main/update_wsl.bat
- Command line
-
hf download hf://spaces/Snotacus/textgen/update_wsl.bat
-
curl -L -o update_wsl.bat https://huggingface.co/spaces/Snotacus/textgen/resolve/main/update_wsl.bat
285 Bytes
| @echo off | |
| cd /D "%~dp0" | |
| set PATH=%PATH%;%SystemRoot%\system32 | |
| @rem sed -i 's/\x0D$//' ./wsl.sh converts newlines to unix format in the wsl script calling wsl.sh with 'update' will run updater | |
| call wsl -e bash -lic "sed -i 's/\x0D$//' ./wsl.sh; source ./wsl.sh update" | |
| :end | |
| pause | |