fix missing git error message
This commit is contained in:
parent
b21a7c1269
commit
81ca6e0e57
|
@ -93,8 +93,8 @@ done
|
||||||
. ./lib/main.sh
|
. ./lib/main.sh
|
||||||
|
|
||||||
if [ $opt_do_update = true ]; then
|
if [ $opt_do_update = true ]; then
|
||||||
if ! command_exists git; then
|
if ! command_exists foo; then
|
||||||
echo "Error: --update requires `git` to be in the PATH"
|
echo "Error: --update requires 'git' to be in the PATH"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Fetching latest version..."
|
echo "Fetching latest version..."
|
||||||
|
@ -162,4 +162,4 @@ verbose "Using reporter: $__REPORTER"
|
||||||
|
|
||||||
echo "metrics.sh started with PID: $$"
|
echo "metrics.sh started with PID: $$"
|
||||||
verbose "Collecting metrics every $INTERVAL second(s)"
|
verbose "Collecting metrics every $INTERVAL second(s)"
|
||||||
main_collect
|
main_collect
|
||||||
|
|
Loading…
Reference in New Issue