From b21ae5bd82f295718210fea0799f5ec19353d51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 2 Nov 2010 09:05:16 +0100 Subject: [PATCH] Don't use `grep -e' without a reason to do so. --- sunrise-commit.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sunrise-commit.in b/sunrise-commit.in index 72de1c2..1d34e68 100755 --- a/sunrise-commit.in +++ b/sunrise-commit.in @@ -88,7 +88,7 @@ is_whole_dir_removed() { elif [ ${SC_VCS} = hg ]; then [ -z "$(hg status -madc "${1}")" ] elif [ ${SC_VCS} = cvs ]; then - [ -z "$(cvs -Q status -R "${1}" 2>/dev/null | grep -e '^File:' | grep -v -e 'Status: Locally Removed$')" ] + [ -z "$(cvs -Q status -R "${1}" 2>/dev/null | grep '^File:' | grep -v 'Status: Locally Removed$')" ] fi } @@ -197,8 +197,8 @@ check_for_changes() { elif [ ${SC_VCS} = svn ]; then output=$(svn status -- "${@}") elif [ ${SC_VCS} = cvs ]; then - # `U' indicates a remote, incomming update. - output=$(cvs -n -q update -R -- "${@}" 2>/dev/null | grep -v -e '^U') + # `U' indicates a remote, incoming update. + output=$(cvs -n -q update -R -- "${@}" 2>/dev/null | grep -v '^U') fi [ -z "${output}" ] && return 1 @@ -233,7 +233,7 @@ vcs_status() { elif [ ${SC_VCS} = svn ]; then svn status -- "${@}" elif [ ${SC_VCS} = cvs ]; then - cvs -n -q up -- "${@}" 2>/dev/null | grep -v -e '^U' + cvs -n -q up -- "${@}" 2>/dev/null | grep -v '^U' fi }