Advertisement
s243a

petget ln#47-56 remove a package

Apr 20th, 2018
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #remove a package... #Ln# 47-54 /usr/sbin/petget -
  2. case "$PASSEDPARAM" in -*) #EX: -read-edid_3.0.1-2_i386.deb
  3.  PKGNAME=${PASSEDPARAM#-} #remove leading '-'
  4.  PKGNAME="$(basename $PKGNAME)"
  5.  [ ! "$DISPLAY" ] && touch /tmp/remove_pets_quietly
  6.  TREE2=${PKGNAME%.*} #remove extension
  7.  export TREE2        #this is used by removepreview.sh
  8.  /usr/local/petget/removepreview.sh
  9.  exit
  10. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement