From 991c41db8f5a8abd4f044cccfaae99070567e74e Mon Sep 17 00:00:00 2001 From: Dirk Vogt Date: Wed, 2 May 2012 13:19:41 +0200 Subject: [PATCH] Fix up mtree.sh --- etc/mtree.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 }'`" -- 2.44.0