[GRASS-SVN] r49125 -
grass/branches/develbranch_6/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 6 16:37:51 EST 2011
Author: hamish
Date: 2011-11-06 13:37:51 -0800 (Sun, 06 Nov 2011)
New Revision: 49125
Modified:
grass/branches/develbranch_6/scripts/g.extension/g.extension
Log:
make parent dirs too if needed
Modified: grass/branches/develbranch_6/scripts/g.extension/g.extension
===================================================================
--- grass/branches/develbranch_6/scripts/g.extension/g.extension 2011-11-06 21:32:08 UTC (rev 49124)
+++ grass/branches/develbranch_6/scripts/g.extension/g.extension 2011-11-06 21:37:51 UTC (rev 49125)
@@ -235,7 +235,7 @@
MYINST_DIR="$PREFIX"
else
g.message -w "'$PREFIX' does not exist. Creating ..."
- mkdir "$PREFIX"
+ mkdir -p "$PREFIX"
if [ $? -ne 0 ] || [ ! -d "$PREFIX" ] ; then
g.message -e "Unable to create '$PREFIX' directory"
exit 1
More information about the grass-commit
mailing list