Docker: be POSIX-compliant in the library creation script.

This commit is contained in:
Konstantin Pavlov
2023-08-22 14:55:10 -07:00
parent f311b1f3aa
commit 78a473743d

View File

@@ -142,10 +142,10 @@ library:
modname="$$( echo $$mod | tr -d '.0123456789-' )"; \ modname="$$( echo $$mod | tr -d '.0123456789-' )"; \
TAGS="$$mod $${mod%%.*} $$modname" ; \ TAGS="$$mod $${mod%%.*} $$modname" ; \
TAGS="$$(echo $$TAGS | tr " " "\n" | sort -u -r | tr "\n" "," | sed "s/,/, /g")"; \ TAGS="$$(echo $$TAGS | tr " " "\n" | sort -u -r | tr "\n" "," | sed "s/,/, /g")"; \
if [ "$$previous" == "$$modname" ]; then \ if [ "$$previous" = "$$modname" ]; then \
echo "Tags: $(VERSION)-$$mod, $$mod"; \ echo "Tags: $(VERSION)-$$mod, $$mod"; \
else \ else \
if [ "$$mod" == "minimal" ]; then \ if [ "$$mod" = "minimal" ]; then \
echo "Tags: $(VERSION)-$$mod, $${TAGS%, }, latest"; \ echo "Tags: $(VERSION)-$$mod, $${TAGS%, }, latest"; \
else \ else \
echo "Tags: $(VERSION)-$$mod, $${TAGS%, }"; \ echo "Tags: $(VERSION)-$$mod, $${TAGS%, }"; \