Преглед на файлове

Merge pull request #2347 from bdarnell/fix-nyet-test

Fix test for existence of go-nyet.
Barak Michener преди 11 години
родител
ревизия
d57e07dcde
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      test

+ 1 - 1
test

@@ -60,7 +60,7 @@ if [ -n "${vetRes}" ]; then
 	exit 255
 fi
 
-if [ -f `which go-nyet` ]; then
+if command -v go-nyet >/dev/null 2>&1; then
   echo "Checking go-nyet..."
   nyetRes=$(go-nyet -exitWith 0 $FMT)
   if [ -n "${nyetRes}" ]; then