Added counterpart to xtract, xpress

This commit is contained in:
z3rOR0ne 2022-09-04 01:16:31 -07:00
parent f88adb2691
commit f71ca38487
2 changed files with 72 additions and 0 deletions

View file

@ -52,6 +52,11 @@ if [ "${extension}" == "tgz" ] ; then
fi
done
if [ $missingdependencies -gt 0 ] ; then
echo "${txtred}Please install needed dependencies${txtwhite}"
exit 1
fi
echo "${txtblue}decompressing .tgz...${txtyellow}"
# main extraction method
tar zxvf "${1}" &> /dev/null