From: rhatto Date: Wed, 4 Apr 2007 16:31:22 +0000 (+0000) Subject: templatepkg: smal fixes X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ab73923798c319034802451de269ba08f8c81b51;p=simplepkg.git templatepkg: smal fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@231 04377dda-e619-0410-9926-eae83683ac58 --- diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index e605011..e2feaa7 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -122,7 +122,7 @@ function import_export_templates { if [ "$mode" == "export" ]; then preposition="to" - svn import templates $repository -m "initial import" + svn import templates/ $repository/ -m "initial import" if [ "$?" != "0" ]; then echo $BASENAME: export failed exit 1 @@ -159,7 +159,7 @@ function template_create { local template_base info_commit - if [ ! -d "`dirname $TEMPLATE_BASE`" ]; then + if [ ! -d "`dirname $TEMPLATE_BASE`" ]; then if use_svn && [ -d "`dirname $TEMPLATE_BASE`/.svn" ]; then cd `dirname $TEMPLATE_BASE` svn mkdir `dirname $TEMPLATE_BASE` @@ -275,8 +275,6 @@ function template_add { local info_commit cwd - mkdir -p $TEMPLATE_BASE.d - if [ -z "$1" ] || [ -z "$2" ]; then return 1 fi