Skip to content

Commit 9c8f5d0

Browse files
committed
Flip-flop a few aliases for more consistent "--uniq" output
Before: ```console $ bashbrew list --uniq <(./generate-stackbrew-library.sh) 63:4.6.1-apache 63:4.6.1-fpm 63:4.6.1-php7.0 63:4.6.1-php7.0-fpm ``` After: ```console $ bashbrew list --uniq <(./generate-stackbrew-library.sh) 63:4.6.1-apache 63:4.6.1-fpm 63:4.6.1-php7.0-apache 63:4.6.1-php7.0-fpm ```
1 parent 2c2fe00 commit 9c8f5d0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

generate-stackbrew-library.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,15 @@ for phpVersion in "${phpVersions[@]}"; do
8787
fullAliases+=( "${versionAliases[@]}" )
8888
fi
8989
fi
90-
if [ "$variant" = "$defaultVariant" ]; then
91-
fullAliases+=( "${phpVersionAliases[@]}" )
92-
fi
9390

9491
fullAliases+=(
9592
"${phpVersionVariantAliases[@]}"
9693
)
9794

95+
if [ "$variant" = "$defaultVariant" ]; then
96+
fullAliases+=( "${phpVersionAliases[@]}" )
97+
fi
98+
9899
echo
99100
cat <<-EOE
100101
Tags: $(join ', ' "${fullAliases[@]}")

0 commit comments

Comments
 (0)