Fix writing of yq in repo_sync

Make sure binary path exists before writing.

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2021-03-29 12:57:59 +02:00
parent ca847ff026
commit 651a560254
No known key found for this signature in database
GPG Key ID: C646B23C9E3245F1

View File

@ -110,7 +110,7 @@ jobs:
executor: golang
steps:
- checkout
- run: curl -sL --fail https://github.com/mikefarah/yq/releases/download/v4.6.3/yq_linux_amd64 -o "${PATH%%:*}/yq" && chmod -v +x "${PATH%%:*}/yq"
- run: mkdir -v -p "${PATH%%:*}" && curl -sL --fail https://github.com/mikefarah/yq/releases/download/v4.6.3/yq_linux_amd64 -o "${PATH%%:*}/yq" && chmod -v +x "${PATH%%:*}/yq"
- run: sha256sum -c <(echo "c4343783c3361495c0d6d1eb742bba7432aa65e13e9fb8d7e201d544bcf14247 ${PATH%%:*}/yq")
- run: ./scripts/sync_repo_files.sh