1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-21 19:01:07 +03:00

Don't find "-v" in "--version"

Fixes #1065
This commit is contained in:
Peter Eckersley
2015-10-21 10:58:36 -07:00
parent 368b69ff50
commit f130cb470c

View File

@@ -18,7 +18,7 @@ fi
for arg in "$@" ; do
# This first clause is redundant with the third, but hedging on portability
if [ "$arg" = "-v" ] || [ "$arg" = "--verbose" ] || echo "$arg" | grep -E -- -v+ ; then
if [ "$arg" = "-v" ] || [ "$arg" = "--verbose" ] || echo "$arg" | grep -E -- "-v+$" ; then
VERBOSE=1
fi
done