소스 검색

Merge pull request #8360 from heyitsanthony/fix-osx-fmt

test: fix PASSES=fmt for OSX
Anthony Romano 8 년 전
부모
커밋
e77ecb593c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test

+ 1 - 1
test

@@ -273,7 +273,7 @@ function fmt_pass {
 	fi
 
 	echo "Checking 'go tool vet -all -shadow'..."
-	fmtpkgs=$(echo $FMT | xargs dirname | sort | uniq | sed '/\./d')
+	fmtpkgs=$(for a in $FMT; do dirname "$a"; done | sort | uniq | grep -v "\\.")
 	vetRes=$(go tool vet -all -shadow ${fmtpkgs} 2>&1 | grep -v '/gw/' || true)
 	if [ -n "${vetRes}" ]; then
 		echo -e "govet -all -shadow checking failed:\n${vetRes}"