diff options
Diffstat (limited to 'trunk/src/mkjail')
-rwxr-xr-x | trunk/src/mkjail | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/trunk/src/mkjail b/trunk/src/mkjail index 43669e1..f6c935c 100755 --- a/trunk/src/mkjail +++ b/trunk/src/mkjail @@ -61,9 +61,11 @@ function jailist_update { # update the jail list file # usage: jailist_update <jail-path> - touch $JAIL_LIST - if ! grep -q -e "^$1\$" $JAIL_LIST; then - echo $1 >> $JAIL_LIST + if [ "$ADD_TO_JAIL_LIST" == "1" ]; then + touch $JAIL_LIST + if ! grep -q -e "^$1\$" $JAIL_LIST; then + echo $1 >> $JAIL_LIST + fi fi } |