Download start.sh from dimag69/aria2c: direct link, hf CLI and curl.
- Browser
- Download file 498 Bytes
-
https://huggingface.co/spaces/dimag69/aria2c/resolve/main/start.sh
- Command line
-
hf download hf://spaces/dimag69/aria2c/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/dimag69/aria2c/resolve/main/start.sh
498 Bytes
| if [ -f .env ]; then | |
| echo ".env file found, sourcing it" | |
| set -o allexport | |
| source .env | |
| set +o allexport | |
| fi | |
| export PATH="$(cat PATH)" | |
| if [[ -n $RCLONE_CONFIG && -n $RCLONE_DESTINATION ]]; then | |
| echo "Rclone config detected" | |
| echo -e "[DRIVE]\n$RCLONE_CONFIG" > rclone.conf | |
| echo "on-download-stop=./delete.sh" >> aria2c.conf | |
| echo "on-download-complete=./on-complete.sh" >> aria2c.conf | |
| chmod +x delete.sh | |
| chmod +x on-complete.sh | |
| fi | |
| aria2c --conf-path=aria2c.conf& | |
| yarn start | |