aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfixincludes/fixinc.in10
1 files changed, 4 insertions, 6 deletions
diff --git a/fixincludes/fixinc.in b/fixincludes/fixinc.in
index de5a37f..0c30664 100755
--- a/fixincludes/fixinc.in
+++ b/fixincludes/fixinc.in
@@ -258,12 +258,10 @@ then echo "All directories (including links to directories):"
echo $all_dirs
fi
-for file in $all_dirs; do
- rm -rf $LIB/$file
- if [ ! -d $LIB/$file ]
- then mkdir $LIB/$file
- fi
-done
+cd $LIB
+echo "$all_dirs" | xargs mkdir -p
+cd ..
+
mkdir $LIB/root
# # # # # # # # # # # # # # # # # # # # #