aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/mkjail
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/mkjail')
-rwxr-xr-xtrunk/src/mkjail4
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk/src/mkjail b/trunk/src/mkjail
index 3be3efb..a40ff0d 100755
--- a/trunk/src/mkjail
+++ b/trunk/src/mkjail
@@ -97,8 +97,8 @@ function jailist_update {
# update the jail list file
# usage: jailist_update <jail-path>
- if [ -f "$JAIL_LIST" ]; then
- if ! grep -q "^$1" $JAIL_LIST; then
+ if [ -s "$JAIL_LIST" ]; then
+ if ! grep -q -e "^$1$" $JAIL_LIST; then
echo $1 >> $JAIL_LIST
fi
else