Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Begin ~/.config/jumanji/scripts/fileget.sh
- URL="$1"
- file=${2##*/}
- WGET="wget -c --no-check-certificate --load-cookies"
- path=`zenity --file-selection --directory`
- $WGET ~/.config/jumanji/cookies $url -O $path/$file | zenity --progress \
- --title="Jumanji" --text="Downloading ..." --auto-close
- # comment what is up and uncomment if you just want an open terminal with wget
- # and a defined download dir
- #
- # path="~/Downloads"
- # urxvt -e sh -c "$WGET ~/.config/jumanji/cookies $url -O $path/$file"
- # End of ~/.config/jumanji/scripts/fileget.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement