]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
using 'common.sh: grep -E' instead of 'egrep'
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 15 Dec 2008 21:54:16 +0000 (21:54 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 15 Dec 2008 21:54:16 +0000 (21:54 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@665 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh

index 7f299f0098b9ddc4fd0908a839e401d6391efaf9..56b506f1dec2a3b5941eee5d820f9591e25d06ff 100644 (file)
@@ -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