From 02706ca126a16fe1fdfa265647a46d8ad5c50ad0 Mon Sep 17 00:00:00 2001 From: rhatto Date: Wed, 4 Apr 2007 03:10:49 +0000 Subject: templatepkg smal fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@218 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/templatepkg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'trunk/src') diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index 1495ae2..eb7b56f 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 + svn import templates $repository -m "initial import" if [ "$?" != "0" ]; then echo $BASENAME: export failed exit 1 @@ -290,7 +290,7 @@ function template_add { mkdir -p $TEMPLATE_BASE.d/`dirname $candidate` cp -a $jail/$candidate $TEMPLATE_BASE.d/$candidate if use_svn; then - ( cd $TEMPLATE_BASE.d && svn add $candidate ) + ( cd $TEMPLATE_BASE.d && svn add ./$candidate ) info_commit="yes" else echo Added $jail/$candidate on $TEMPLATE_BASE.d/$candidate @@ -304,7 +304,7 @@ function template_add { else echo $BASENAME: file $file already on $TEMPLATE_BASE.d - exti 1 + exit 1 fi else if [ -a "$jail/$file" ]; then @@ -313,7 +313,7 @@ function template_add { destination="`echo $TEMPLATE_BASE.d/$file | sed -e 's/\/$//'`" cp -a $jail/$file $destination if use_svn; then - ( cd $TEMPLATE_BASE.d && svn add $file ) + ( cd $TEMPLATE_BASE.d && svn add ./$file ) echo $BASENAME: please run jail-commit to add $file into the svn repository true else -- cgit v1.2.3