diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-06-03 14:45:54 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-06-03 14:45:54 +0200 |
commit | a152987a4358e8e05618098fa26db5cfa617f572 (patch) | |
tree | 4f26bd88238635fbe89609738dc73e581fbbb3b8 /bin | |
parent | 654a1529456b38afb53cf33d5687f7ba2ee412cd (diff) |
pkg: grep style fixes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 { |