Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
fix addBlobOnChecksumChange logic
Browse files Browse the repository at this point in the history
+ '[' sha256:d904e6a25da9918c2d162512def7642b5c00a7b2a163c6acaf3eec84a5140e48 '!=' d904e6a25da9918c2d162512def7642b5c00a7b2a163c6acaf3eec84a5140e48 ']'
  • Loading branch information
gberche-orange committed Sep 25, 2023
1 parent 71920c9 commit dfb0640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addblob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function addBlobOnChecksumChange() {
target="$2"
blob_checksum=$(cat config/blobs.yml | yq .'"'${target}'"'.sha)
src_checksum=$(cat "${src}" | sha256sum | cut -d " " -f1)
if [ "${blob_checksum}" != "${src_checksum}" ]; then
if [ "${blob_checksum}" != "sha256:${src_checksum}" ]; then
bosh add-blob ${src} ${target}
else
echo "skipping blob creation with exiting checksum: ${src_checksum}"
Expand Down

0 comments on commit dfb0640

Please sign in to comment.