aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-04 14:08:10 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-04 14:08:10 +0000
commitc2b3d4d405f932e4920da0e0f487236584aaaac7 (patch)
treef64072d1334472c3d42ee33452d3fc33ea033692
parent86187ecfc2ef3ccc1d1e64546260643209d35aa4 (diff)
downloadsimplepkg-c2b3d4d405f932e4920da0e0f487236584aaaac7.tar.gz
simplepkg-c2b3d4d405f932e4920da0e0f487236584aaaac7.tar.bz2
templatepkg: small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@223 04377dda-e619-0410-9926-eae83683ac58
-rwxr-xr-xtrunk/src/templatepkg6
1 files changed, 3 insertions, 3 deletions
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg
index 3891f3b..8cc2bd6 100755
--- a/trunk/src/templatepkg
+++ b/trunk/src/templatepkg
@@ -159,12 +159,12 @@ function template_create {
local template_base info_commit
- if [ ! -d "$TEMPLATE_BASE" ]; then
+ if [ ! -d "`dirname $TEMPLATE_BASE`" ]; then
if use_svn && [ -d "`dirname $TEMPLATE_BASE`/.svn" ]; then
cd `dirname $TEMPLATE_BASE`
- svn mkdir $TEMPLATE_BASE
+ svn mkdir `dirname $TEMPLATE_BASE`
else
- mkdir -p $TEMPLATE_BASE
+ mkdir -p `dirname $TEMPLATE_BASE`
fi
fi