Advertisement
s243a

petget LN#166-178 - Confirm Install

Apr 20th, 2018
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.63 KB | None | 0 0
  1. #confirm want to install... #LN166-178 /usr/sbin/petget (tahrpup) - https://www.pearltrees.com/s243a/source-petget-usr-sbin/id20395775/item224036751
  2. if [ "$DISPLAY" ]; then
  3.   . /usr/lib/gtkdialog/box_yesno "$(gettext 'Puppy Package Manager')" "$(gettext 'Do you want to install this package:')" "<b>${FULLPKGNAME}</b>"
  4.   [ "$EXIT" = "yes" ] && RETVAL=0 || RETVAL=1
  5. else
  6.   dialog --yesno "$(gettext 'Do you want to install this package:') $FULLPKGNAME" 0 0
  7.   RETVAL=$?
  8. fi
  9. if [ $RETVAL -ne 0 ] ; then #DON'T WANT TO INSTALL..
  10.   [ "$DOWNLOADED" = "yes" -o "$originPKGPATH" = "/root" ] && exit 0
  11.   rm -f /root/${FULLPKGNAME}
  12.   exit 0
  13. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement