diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-15 21:54:16 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-15 21:54:16 +0000 |
commit | f686c0c84d8bbd1868d75cbce738403d5dea22c8 (patch) | |
tree | 00d7b50074f7e21b2dba5550d08a7c2b2ea8dbd8 /trunk | |
parent | 7ed5f3b392212c095ee9820813d2b04d7b7e689c (diff) | |
download | simplepkg-f686c0c84d8bbd1868d75cbce738403d5dea22c8.tar.gz simplepkg-f686c0c84d8bbd1868d75cbce738403d5dea22c8.tar.bz2 |
using 'common.sh: grep -E' instead of 'egrep'
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@665 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk')
-rw-r--r-- | trunk/lib/common.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 7f299f0..56b506f 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -94,7 +94,7 @@ function install_packages { # check if the package was installed pack="`echo $pack | sed -e 's/\+/\\\+/'`" - installed=`eval "ls /$root/var/log/packages/ | egrep -E '^$pack-[^-]+-[^-]+-[^-]+$'"` + installed=`eval "ls /$root/var/log/packages/ | grep -E '^$pack-[^-]+-[^-]+-[^-]+$'"` check=$? if [ ! -z "$installed" ] && [ "$check" == "0" ]; then @@ -834,7 +834,7 @@ function update_jail_packages { # check if the package is installed pack="`echo $pack | sed -e 's/\+/\\\+/'`" - installed=`eval "ls /$1/var/log/packages/ | egrep -E '^$pack-[^-]+-[^-]+-[^-]+$'"` + installed=`eval "ls /$1/var/log/packages/ | grep -E '^$pack-[^-]+-[^-]+-[^-]+$'"` check=$? if [ -z "$installed" ] || [ "$check" != "0" ]; then |