Fix up mtree.sh
This commit is contained in:
parent
eccb5d51f2
commit
991c41db8f
1 changed files with 6 additions and 4 deletions
|
@ -19,11 +19,13 @@ 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
|
||||
elif [ $UNPRIV != yes ]
|
||||
then
|
||||
chown $owner $dir
|
||||
chmod $mode $dir
|
||||
chgrp $group $dir
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue