add progress bar to tar

This commit is contained in:
lw-everestlinux committed 2023-01-27 09:03:47 -05:00
1 parent 8a9641be67
commit b0d28489e9
1 file changed
+1 -1
+1 -1
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