aboutsummaryrefslogtreecommitdiff
path: root/trunk/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-11 19:28:10 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-11 19:28:10 +0000
commit6c55959f13227f8ba4385376b86dbf27e164ac56 (patch)
treed084449ce086c5cb1d9cdcf19884df3cc7ba6316 /trunk/src
parentf9a8dfcd51e481a49355d94a3e74f2762519378f (diff)
downloadsimplepkg-6c55959f13227f8ba4385376b86dbf27e164ac56.tar.gz
simplepkg-6c55959f13227f8ba4385376b86dbf27e164ac56.tar.bz2
jailist_update changes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@182 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src')
-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