Tianon Gravi 7 жил өмнө
parent
commit
0899285c36
1 өөрчлөгдсөн 1 нэмэгдсэн , 2 устгасан
  1. 1 2
      bashbrew/travis.sh

+ 1 - 2
bashbrew/travis.sh

@@ -37,8 +37,7 @@ fi
 
 export BASHBREW_LIBRARY="$(dirname "$PWD")/library"
 
-badTags="$(bashbrew list "${repos[@]}" | grep -E ':.+latest.*|:.*latest.+')"
-if [ -n "$badTags" ]; then
+if badTags="$(bashbrew list "${repos[@]}" | grep -E ':.+latest.*|:.*latest.+')" && [ -n "$badTags" ]; then
 	echo >&2
 	echo >&2 "Incorrectly 'latest' tags detected:"
 	echo >&2 ' ' $badTags