Don't use `grep -e' without a reason to do so.
This commit is contained in:
parent
09661479e0
commit
b21ae5bd82
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user