Advertisement
s243a

peget LN#58-71 - Find Package Type

Apr 20th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. #-------- want to install a pkg... #LN#58-71 of /usr/sbin/petget (tahrpup) -
  2.  
  3. #what type is it...
  4. PASSEDBASE="`basename "$PASSEDPARAM"`"
  5. case $PASSEDBASE in
  6.  *.pet) EXT=".pet" ;;
  7.  *.deb) EXT=".deb" ;;
  8.  *.tgz) EXT=".tgz" ;;
  9.  *.txz) EXT=".txz" ;;
  10.  *.rpm) EXT=".rpm" ;;
  11.  *.tar.gz) EXT=".tar.gz" ;;
  12.  *.tar.xz) EXT=".tar.xz" ;;
  13.  *) EXT="" ;;
  14. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement