From: Dirk Vogt Date: Wed, 2 May 2012 11:19:41 +0000 (+0200) Subject: Fix up mtree.sh X-Git-Tag: v3.2.1~520 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/static/gitweb.js?a=commitdiff_plain;h=991c41db8f5a8abd4f044cccfaae99070567e74e;p=minix.git Fix up mtree.sh --- diff --git a/etc/mtree.sh b/etc/mtree.sh index 0f38a8621..907b413a6 100755 --- a/etc/mtree.sh +++ b/etc/mtree.sh @@ -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 }'`"