summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-06-03 14:45:54 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-06-03 14:45:54 +0200
commita152987a4358e8e05618098fa26db5cfa617f572 (patch)
tree4f26bd88238635fbe89609738dc73e581fbbb3b8
parent654a1529456b38afb53cf33d5687f7ba2ee412cd (diff)
pkg: grep style fixes
-rwxr-xr-xbin/pkg6
1 files 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 {