Skip to content

Commit

Permalink
Fix duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Jan 26, 2016
1 parent 477e34e commit d8595fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ echo '# maintainer: InfoSiftr <github@infosiftr.com> (@infosiftr)'
for version in "${versions[@]}"; do
commit="$(cd "$version" && git log -1 --format='format:%H' -- Dockerfile $(awk 'toupper($1) == "COPY" { for (i = 2; i < NF; i++) { print $i } }' Dockerfile))"
fullVersion="$(grep -m1 'ENV CASSANDRA_VERSION ' "$version/Dockerfile" | cut -d' ' -f3 | cut -d- -f1)"
versionAliases=( $fullVersion $version ${aliases[$version]} )
versionAliases=( $fullVersion )
if [ "$version" != "$fullVersion" ]; then
versionAliases+=( $version )
fi
versionAliases+=( ${aliases[$version]} )

echo
for va in "${versionAliases[@]}"; do
Expand Down

0 comments on commit d8595fb

Please sign in to comment.