From f686c0c84d8bbd1868d75cbce738403d5dea22c8 Mon Sep 17 00:00:00 2001 From: rhatto Date: Mon, 15 Dec 2008 21:54:16 +0000 Subject: 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 --- trunk/lib/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trunk/lib') 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 -- cgit v1.2.3