diff options
Diffstat (limited to 'trunk/src')
-rwxr-xr-x | trunk/src/jail-commit | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk/src/jail-commit b/trunk/src/jail-commit index b17a529..573e0c0 100755 --- a/trunk/src/jail-commit +++ b/trunk/src/jail-commit @@ -123,8 +123,8 @@ function do_commit { fi search_template $template --update - if [ "$?" == "0" ] || ! echo $TEMPLATE_UPDATE_LIST | grep -q " `dirname $TEMPLATE_BASE` "; then - TEMPLATE_UPDATE_LIST="$TEMPLATE_UPDATE_LIST `dirname $TEMPLATE_BASE` " # the end space is important + if [ "$?" == "0" ] || ! echo $TEMPLATE_UPDATE_LIST | grep -q " `basename $TEMPLATE_BASE` "; then + TEMPLATE_UPDATE_LIST="$TEMPLATE_UPDATE_LIST `basename $TEMPLATE_BASE` " # the end space is important if [ "$jailpath" == "/" ]; then echo Updating main installation... else |