Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #!/bin/bash
  2. # Begin ~/.config/jumanji/scripts/fileget.sh
  3.  
  4. URL="$1"
  5. file=${2##*/}
  6. WGET="wget -c --no-check-certificate --load-cookies"
  7.  
  8. path=`zenity --file-selection --directory`
  9. $WGET ~/.config/jumanji/cookies $url -O $path/$file | zenity --progress \
  10. --title="Jumanji" --text="Downloading ..." --auto-close
  11.  
  12. # comment what is up and uncomment if you just want an open terminal with wget
  13. # and a defined download dir
  14. #
  15. # path="~/Downloads"
  16. # urxvt -e sh -c "$WGET ~/.config/jumanji/cookies $url -O $path/$file"
  17.  
  18. # End of ~/.config/jumanji/scripts/fileget.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement