aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/jail-commit
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/jail-commit')
-rwxr-xr-xtrunk/src/jail-commit7
1 files changed, 5 insertions, 2 deletions
diff --git a/trunk/src/jail-commit b/trunk/src/jail-commit
index f3d5f05..b17a529 100755
--- a/trunk/src/jail-commit
+++ b/trunk/src/jail-commit
@@ -123,7 +123,8 @@ function do_commit {
fi
search_template $template --update
- if [ "$?" == "0" ]; then
+ 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 [ "$jailpath" == "/" ]; then
echo Updating main installation...
else
@@ -137,6 +138,8 @@ function do_commit {
}
+TEMPLATE_UPDATE_LIST=""
+
if [ "$1" == "--help" ]; then
usage
elif [ "$1" == "--all" ]; then
@@ -147,7 +150,7 @@ elif [ ! -z "$1" ]; then
do_commit $1 $2
template_svn_commit `dirname $TEMPLATE_BASE`
else
- if [ -f $JAIL_LIST ]; then
+ if [ -e $JAIL_LIST ]; then
for jailpath in `cat $JAIL_LIST`; do
do_commit $jailpath
done