]> Zhao Yanbai Git Server - minix.git/commitdiff
Packme fix.
authorBen Gras <ben@minix3.org>
Mon, 6 Feb 2006 10:55:38 +0000 (10:55 +0000)
committerBen Gras <ben@minix3.org>
Mon, 6 Feb 2006 10:55:38 +0000 (10:55 +0000)
commands/scripts/packme.sh

index 106fa5e62a15b92d81ce170323a0bd8f1413918c..c84b6d6a13edb6bd88ae087ea51fd77782c7d4e3 100644 (file)
@@ -12,11 +12,13 @@ fi
 cd /
 
 if [ -n "$cddrive" ]
-then   isodir "$cddrive" $CDDIR | grep -i tbz | while read package
-       do      echo -n "Install $package (y/n) ? "
+then   for package in `isodir "$cddrive" $CDDIR | grep -i '\.tbz'`
+       do      echo -n "Install $package (y/N) ? "
                read y
                if [ "$y" = y ]
-               then    isoread "$cddrive" $CDDIR/$package | bzip2 -d | pax -r -p e '*' / || echo "Extract failed."
+               then    echo "Extracting $CDDIR/$package .."
+                       isoread "$cddrive" $CDDIR/$package | smallbunzip2 | pax -r -p e || echo "Extract failed."
                fi
        done
 fi
+