]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
jail-commit: small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sat, 7 Apr 2007 18:53:27 +0000 (18:53 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sat, 7 Apr 2007 18:53:27 +0000 (18:53 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@307 04377dda-e619-0410-9926-eae83683ac58

trunk/src/jail-commit

index 50bc6ae8c66ed2b6923eb94acb275895c42efa62..db2372a23530782a922aba664aebbe318d9574d2 100755 (executable)
@@ -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