add progress bar to tar

This commit is contained in:
Liam Waldron 2023-01-27 09:03:47 -05:00
parent 8a9641be67
commit b0d28489e9

View File

@ -51,7 +51,7 @@ int_check() {
unpack_pkg() {
printf "$blue[ i ]$reset Unpacking $2.tar.gz...\n"
mkdir $2 && mv $2.tar.gz $2 && cd $2
tar -xf $2.tar.gz
pv $2.tar.gz | tar -xz
if [ "$?" != "0" ]; then
printf "$red[ $error ]$reset Could not unpack $2.tar.gz.\n"
cd .. && rm -rf $2