aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-11 19:46:15 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-11 19:46:15 +0000
commit6fa49c9dd9c53c0e930a49e91548002f1098bd29 (patch)
tree1ee8f5632fc4cdc08bee8647c0cc23381ed62ed2
parent6c55959f13227f8ba4385376b86dbf27e164ac56 (diff)
downloadsimplepkg-6fa49c9dd9c53c0e930a49e91548002f1098bd29.tar.gz
simplepkg-6fa49c9dd9c53c0e930a49e91548002f1098bd29.tar.bz2
jailist_update changes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@183 04377dda-e619-0410-9926-eae83683ac58
-rwxr-xr-xtrunk/src/mkjail9
1 files changed, 3 insertions, 6 deletions
diff --git a/trunk/src/mkjail b/trunk/src/mkjail
index a40ff0d..a79bfe6 100755
--- a/trunk/src/mkjail
+++ b/trunk/src/mkjail
@@ -97,12 +97,9 @@ function jailist_update {
# update the jail list file
# usage: jailist_update <jail-path>
- if [ -s "$JAIL_LIST" ]; then
- if ! grep -q -e "^$1$" $JAIL_LIST; then
- echo $1 >> $JAIL_LIST
- fi
- else
- echo $1 > $JAIL_LIST
+ touch $JAIL_LIST
+ if ! grep -q -e "^$1\$" $JAIL_LIST; then
+ echo $1 >> $JAIL_LIST
fi
}