aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtrunk/src/jail-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/trunk/src/jail-commit b/trunk/src/jail-commit
index c336f95..c910c03 100755
--- a/trunk/src/jail-commit
+++ b/trunk/src/jail-commit
@@ -123,7 +123,7 @@ function do_commit {
fi
search_template $template --update
- if [ "$?" == "0" ] || ! echo $TEMPLATE_UPDATE_LIST | grep -q " `basename $TEMPLATE_BASE` "; then
+ if [ "$?" == "0" ] && ! echo $TEMPLATE_UPDATE_LIST | grep -q " `basename $TEMPLATE_BASE` "; then
TEMPLATE_UPDATE_LIST=" $TEMPLATE_UPDATE_LIST `basename $TEMPLATE_BASE` " # the spaces are important
if [ "$jailpath" == "/" ]; then
echo Updating main installation...