📝 Changed color of success msg and made notes
This commit is contained in:
parent
be08bd6b01
commit
26ea15a216
1 changed files with 3 additions and 2 deletions
|
|
@ -37,8 +37,8 @@ tput bold & tput setaf 7
|
||||||
# grabs the extension string
|
# grabs the extension string
|
||||||
extension=$(echo "${1}" | sed 's/^[^\..:]*[\..]//')
|
extension=$(echo "${1}" | sed 's/^[^\..:]*[\..]//')
|
||||||
|
|
||||||
|
# Simply copy and paste, changing extension string and extraction method below
|
||||||
if [ "${extension}" == "tgz" ] ; then
|
if [ "${extension}" == "tgz" ] ; then
|
||||||
|
|
||||||
# Dependency check
|
# Dependency check
|
||||||
dependencies=("echo" "tar" "gunzip")
|
dependencies=("echo" "tar" "gunzip")
|
||||||
numdependencies=3
|
numdependencies=3
|
||||||
|
|
@ -52,7 +52,8 @@ if [ "${extension}" == "tgz" ] ; then
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "${txtblue}decompressing .tgz...${txtgreen}"
|
echo "${txtblue}decompressing .tgz...${txtyellow}"
|
||||||
|
# main extraction method
|
||||||
tar zxvf "${1}" &> /dev/null
|
tar zxvf "${1}" &> /dev/null
|
||||||
echo ".tgz decompression finished!${txtwhite}"
|
echo ".tgz decompression finished!${txtwhite}"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue