Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #download if required... #Ln 72 to 92 of /usr/sbin/petget (tahrpup) - https://www.pearltrees.com/s243a/source-petget-usr-sbin/id20395775/item224036322
- PKGNAME=""
- DOWNLOADED=""
- if [ "`echo -n "$PASSEDPARAM" | grep -E '^ftp|^http'`" != "" ];then
- cd /root
- #101116 use download_file utility...
- download_file "$PASSEDPARAM"
- PKGPATH="`dirname "$PASSEDPARAM"`" #really a url.
- FULLPKGNAME="`basename "$PASSEDPARAM"`"
- PKGMAIN="`basename "$PASSEDPARAM" ${EXT}`"
- if [ ! -f "$FULLPKGNAME" ];then
- if [ "$DISPLAY" ]; then
- /usr/lib/gtkdialog/box_ok "$(gettext 'Puppy package manager')" error "$(gettext 'Sorry, failed to download') $FULLPKGNAME"
- exit
- else
- dialog --msgbox "$(gettext 'Sorry, failed to download') $FULLPKGNAME" 0 0
- exit
- fi
- fi
- DOWNLOADED="yes"
Add Comment
Please, Sign In to add comment