From e1dedaa464f04a5c49d51069d64bc62b503d42ba Mon Sep 17 00:00:00 2001 From: Guillaume Berche Date: Mon, 25 Sep 2023 23:03:36 +0200 Subject: [PATCH] fix yq command quotes --- addblob.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addblob.sh b/addblob.sh index b24ea3eb..4527660e 100755 --- a/addblob.sh +++ b/addblob.sh @@ -11,7 +11,7 @@ function addBlobOnChecksumChange() { pwd ls -al config/blobs.yml cat config/blobs.yml - blob_checksum=$(cat config/blobs.yml | yq ."${src}".sha) + blob_checksum=$(cat config/blobs.yml | yq .'"'${src}'"'.sha) src_checksum=$(cat "${src}" | sha256sum | cut -d " " -f1) if [ "${blob_checksum}" != "${src_checksum}" ]; then bosh add-blob ${src} ${target}