Tianon Gravi 7 gadi atpakaļ
vecāks
revīzija
0899285c36
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  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