diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-07 18:53:27 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-07 18:53:27 +0000 |
commit | 13dd050ce023b9c1ce343280729fbc6476dbc63c (patch) | |
tree | 2666a517a2a5fe24972f13dacbd74f33a9c79141 | |
parent | 119bb276b969b8effcc00f1300e2b32af0bb2012 (diff) | |
download | simplepkg-13dd050ce023b9c1ce343280729fbc6476dbc63c.tar.gz simplepkg-13dd050ce023b9c1ce343280729fbc6476dbc63c.tar.bz2 |
jail-commit: small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@307 04377dda-e619-0410-9926-eae83683ac58
-rwxr-xr-x | trunk/src/jail-commit | 7 |
1 files changed, 6 insertions, 1 deletions
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 |