aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtrunk/src/jail-commit7
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