]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix up mtree.sh
authorDirk Vogt <dirk@minix3.org>
Wed, 2 May 2012 11:19:41 +0000 (13:19 +0200)
committerThomas Veerman <thomas@minix3.org>
Mon, 18 Jun 2012 10:53:29 +0000 (10:53 +0000)
etc/mtree.sh

index 0f38a86217ffe1b6a7827456464fe52f83fece59..907b413a615fd0aaa762971b1155066c2fe7c398 100755 (executable)
@@ -19,13 +19,15 @@ do
                group="`echo $line | ${AWK} '{ print $3 }'`"
                dir="${DESTDIR}`echo $line | ${AWK} '{ print $4 }'`"
                mkdir -p $dir
+               echo $dir
                targetdev="`${STAT} -f %d $dir/.`"
                if [ $targetdev -lt 256 ]
                then    echo "skipping non-dev $dir properties"
-               elif [ $UNPRIV != yes]
-               then    chown $owner $dir
-                       chmod $mode $dir
-                       chgrp $group $dir
+               elif [ $UNPRIV != yes ]
+               then
+                               chown $owner $dir
+                               chmod $mode $dir
+                               chgrp $group $dir
                fi
        elif [ $NF = 3 ]
        then    target="`echo $line | ${AWK} '{ print $3 }'`"