Skip to content

Commit

Permalink
fail on error, curl not cart (duh)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxfirecodes committed Jul 1, 2024
1 parent 273f969 commit 924ccd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/fetch-art
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e

cd "$(dirname "$0")"
source ./common

Expand All @@ -25,7 +27,7 @@ if [ "$content" != "$expected_content" ]; then
test -f "$img_path" && rm "$img_path"
if [ -n "$art" ]; then
if [[ "$art" = http* ]]; then
cart -s "$art" -o "$img_path"
curl -s "$art" -o "$img_path"
elif [ -f "$art" ]; then
cp "$art" "$img_path"
else
Expand Down
2 changes: 2 additions & 0 deletions scripts/get-metadata
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e

cd "$(dirname "$0")"
source ./common

Expand Down

0 comments on commit 924ccd1

Please sign in to comment.