Browse Source

Remove "naughtyCount" variable from "naughty-constraints.sh" (exit code never used)

Tianon Gravi 5 years ago
parent
commit
7cdae72295
1 changed files with 0 additions and 5 deletions
  1. 0 5
      naughty-constraints.sh

+ 0 - 5
naughty-constraints.sh

@@ -75,7 +75,6 @@ declare -A allNaughty=(
 )
 
 tags="$(bashbrew list --uniq "$@" | sort -u)"
-naughtyCount=0
 for img in $tags; do
 	arches="$(_arches "$img")"
 	constraints="$(bashbrew cat --format '{{ .TagEntry.Constraints | join "\n" }}' "$img" | sort -u)"
@@ -127,7 +126,6 @@ for img in $tags; do
 			missing="$(sed '/^$/d' <<<"$missing" | sort -u)"
 			echo " - $img -- missing constraints (FROM $from):"
 			sed 's/^/   - /' <<<"$missing"
-			(( naughtyCount++ )) || :
 		done
 	fi
 	if [ "${#imgExtra[@]}" -gt 0 ]; then
@@ -136,9 +134,6 @@ for img in $tags; do
 			extra="$(sed '/^$/d' <<<"$extra" | sort -u)"
 			echo " - $img -- extra constraints (FROM $from):"
 			sed 's/^/   - /' <<<"$extra"
-			(( naughtyCount++ )) || :
 		done
 	fi
 done
-
-exit "$naughtyCount"