From 26ea15a216b36bebb5aca734fb015ca72f9c8956 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Sun, 4 Sep 2022 00:43:10 -0700 Subject: [PATCH] :memo: Changed color of success msg and made notes --- scripts/xtract | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/xtract b/scripts/xtract index dde46752..4b13f643 100755 --- a/scripts/xtract +++ b/scripts/xtract @@ -37,8 +37,8 @@ tput bold & tput setaf 7 # grabs the extension string extension=$(echo "${1}" | sed 's/^[^\..:]*[\..]//') +# Simply copy and paste, changing extension string and extraction method below if [ "${extension}" == "tgz" ] ; then - # Dependency check dependencies=("echo" "tar" "gunzip") numdependencies=3 @@ -52,7 +52,8 @@ if [ "${extension}" == "tgz" ] ; then fi done - echo "${txtblue}decompressing .tgz...${txtgreen}" + echo "${txtblue}decompressing .tgz...${txtyellow}" + # main extraction method tar zxvf "${1}" &> /dev/null echo ".tgz decompression finished!${txtwhite}" fi