From 13dd050ce023b9c1ce343280729fbc6476dbc63c Mon Sep 17 00:00:00 2001 From: rhatto Date: Sat, 7 Apr 2007 18:53:27 +0000 Subject: jail-commit: small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@307 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/jail-commit | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'trunk/src/jail-commit') diff --git a/trunk/src/jail-commit b/trunk/src/jail-commit index 50bc6ae..db2372a 100755 --- a/trunk/src/jail-commit +++ b/trunk/src/jail-commit @@ -134,6 +134,9 @@ function do_commit { SILENT=yes templatepkg -u $template $jailpath template_merge $jailpath fi + else + echo $BASENAME: template $template_name not found + return 1 fi } @@ -148,7 +151,9 @@ elif echo $1 | grep -q -e "^--"; then usage elif [ ! -z "$1" ]; then do_commit $1 $2 - template_svn_commit `dirname $TEMPLATE_BASE` + if [ "$?" == "0" ]; then + template_svn_commit `dirname $TEMPLATE_BASE` + fi else if [ -e $JAIL_LIST ]; then for jailpath in `cat $JAIL_LIST`; do -- cgit v1.2.3