Commit b95f3f4a authored by Ian Lynagh's avatar Ian Lynagh
Browse files

mkdirhier.sh now accepts -q, which makes it be quiet

parent d54fc08b
......@@ -5,8 +5,16 @@
#
# Based on Noah Friedman's mkinstalldirs..
#
quiet=no
errs=0
if [ "$1" = "-q" ]
then
shift
quiet=yes
fi
for f in $*; do
parts=`echo ":$f" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
path="";
......@@ -17,7 +25,10 @@ for f in $*; do
esac
if test ! -d "$path"; then
echo "mkdir $path" 1>&2
if [ "$quiet" = "no" ]
then
echo "mkdir $path" 1>&2
fi
mkdir "$path" || lasterr=$?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment