From a152987a4358e8e05618098fa26db5cfa617f572 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 3 Jun 2009 14:45:54 +0200 Subject: pkg: grep style fixes --- bin/pkg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/pkg b/bin/pkg index aed46a6..c84f709 100755 --- a/bin/pkg +++ b/bin/pkg @@ -309,7 +309,7 @@ function vcs_status { function vcs_fix_origin { vcs_setup $1 if [[ ! -r $GIT_DIR/remotes/origin && ! -r $GIT_DIR/refs/remotes/origin/HEAD ]] { - fgrep '[remote "origin"]' $GIT_DIR/config &> /dev/null || + fgrep -q '[remote "origin"]' $GIT_DIR/config || git remote add origin $PKG_ROOT/$1 } } @@ -318,11 +318,11 @@ function vcs_fix_origin { ## List stuff function list_is_installed { - grep "^$1 " $PKG_DIR/.list &> /dev/null + grep -q "^$1 " $PKG_DIR/.list } function list_exists { - grep "^$1 " $PKG_DIR/.list-remote &> /dev/null + grep -q "^$1 " $PKG_DIR/.list-remote } function list_packages_local { -- cgit v1.2.3