diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-09 16:50:07 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-09 16:50:07 +0000 |
commit | 754cad3cb19570e534300e04494b230f1d4f5400 (patch) | |
tree | 0839a92f8b8538c6eae440580f94e868e31fde01 | |
parent | b509528373b4580e951202120ca047da789dca81 (diff) | |
download | simplepkg-754cad3cb19570e534300e04494b230f1d4f5400.tar.gz simplepkg-754cad3cb19570e534300e04494b230f1d4f5400.tar.bz2 |
small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@166 04377dda-e619-0410-9926-eae83683ac58
-rwxr-xr-x | src/mkjail | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -97,8 +97,12 @@ function jailist_update { # update the jail list file # usage: jailist_update <jail-path> - if ! grep -q "^$1" $JAIL_LIST; then - echo $1 >> $JAIL_LIST + if [ -f "$JAIL_LIST" ]; then + if ! grep -q "^$1" $JAIL_LIST; then + echo $1 >> $JAIL_LIST + fi + else + echo $1 > $JAIL_LIST fi } |