From 754cad3cb19570e534300e04494b230f1d4f5400 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 9 Feb 2007 16:50:07 +0000 Subject: small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@166 04377dda-e619-0410-9926-eae83683ac58 --- src/mkjail | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mkjail b/src/mkjail index 0b6adb3..3be3efb 100755 --- a/src/mkjail +++ b/src/mkjail @@ -97,8 +97,12 @@ function jailist_update { # update the jail list file # usage: jailist_update - 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 } -- cgit v1.2.3