Skip to content

Commit

Permalink
linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed May 21, 2024
1 parent 1ff9fb6 commit 522a53b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

set -eou pipefail

hash() {
if command -v md5sum >/dev/null 2>&1; then
md5sum "$@"
else
md5 "$@"
fi
}

terraform output -json | jq .urls.value > output.json
KEYS=$(jq -r 'keys[]' output.json)
for KEY in $KEYS; do
Expand All @@ -22,7 +30,7 @@ for KEY in $KEYS; do
--header "Accept: image/jpeg" \
--header "Apix-Ldp-Resource: http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" \
"$URL"
md5 image.jpg | grep fe7dd57460dbaf50faa38affde54b694
hash image.jpg | grep fe7dd57460dbaf50faa38affde54b694
rm image.jpg
elif [ "$KEY" == "houdini" ]; then
curl -s -o image.png \
Expand Down

0 comments on commit 522a53b

Please sign in to comment.