Skip to content

Commit 27f6f7e

Browse files
committed
Fix parsing each revision on generate-stackbrew-library.sh
Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent 490df18 commit 27f6f7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generate-stackbrew-library.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ latest="$(
6565
| tail -1
6666
)"
6767

68+
# Example: RELEASE_5_0_2^{}
69+
latest=$(echo "$latest" | cut -d'_' -f2,3,4 | cut -d'^' -f1 | awk '{gsub("_","."); print}')
70+
6871
for variant in apache fpm fpm-alpine; do
6972
commit="$(dockerfileCommit "$variant")"
7073
fullversion="$(git show "$commit":"$variant/Dockerfile" | awk '$1 == "ENV" && $2 == "VERSION" { print $3; exit }')"

0 commit comments

Comments
 (0)