Skip to content

Commit cce00e2

Browse files
committed
Do not use jq in conf, can be not installed yet
1 parent 29d61ea commit cce00e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/_conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export DOCKER_PLATFORMS='
3737
{"platform":"arm32v7","architecture":"arm","os":"linux","variant":"v7"}
3838
{"platform":"aarch64","architecture":"arm64","os":"linux","variant":"v8"}'
3939

40-
export DOCKER_PLATFORM_NAMES="$(echo "${DOCKER_PLATFORMS}" | jq -r ".platform" | tr '\n' ' ' | sed 's/ $//')"
40+
export DOCKER_PLATFORM_NAMES="$(echo "${DOCKER_PLATFORMS}" | awk -F '"' '$2 == "platform" { printf "%s ", $4 }' | sed 's/ $//')"
4141

4242
export DOCKER_PLATFORM_NAME="$(echo "${DOCKER_TAG}" | egrep -o "^(${DOCKER_PLATFORM_NAMES// /|})")" || true
4343

0 commit comments

Comments
 (0)