Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- export LANG=C
- DLPKG="$1"
- case $DLPKG in
- *.pet)
- cp -f "$DLPKG" tempfileonly.pet
- pet2tgz tempfileonly.pet
- RETVAL=$?
- rm -rf tempfileonly.*
- exit $RETVAL
- ;;
- *.deb)
- dpkg-deb -c "$DLPKG" >/dev/null 2>&1
- exit $?
- ;;
- *.t[gx]z|*.tar.*)
- tar --force-local -I zstd -tf "$DLPKG" >/dev/null 2>&1
- exit $?
- ;;
- *.zst)
- tar --force-local -tf "$DLPKG" >/dev/null 2>&1
- exit $?
- ;;
- esac
- ### END ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement