ossp-pkg/shtool/sh.mkdir 1.14 -> 1.15
--- sh.mkdir 2001/01/17 09:55:11 1.14
+++ sh.mkdir 2001/04/19 07:33:55 1.15
@@ -49,6 +49,12 @@
echo "mkdir $p" 1>&2
fi
mkdir $p || errstatus=$?
+ if [ ".$opt_m" != . ]; then
+ if [ ".$opt_t" = .yes ]; then
+ echo "chmod $opt_m $pathcomp" 1>&2
+ fi
+ chmod $opt_m $pathcomp || errstatus=$?
+ fi
else
# the smart situation
set fnord `echo ":$p" |\
|
|