Add error message when upload fails

This commit is contained in:
2024-08-12 10:17:43 +10:00
parent 01e1e2f33e
commit 6adc9eb7a7

View File

@@ -22,6 +22,8 @@ if test -f "$media_path"; then
url=$(echo "$raw_url" | sed 's/127.0.0.1/streetspeoplelove.org/') url=$(echo "$raw_url" | sed 's/127.0.0.1/streetspeoplelove.org/')
jq -n --arg id $id --arg url "$url" '{"id": $id, "url": $url}' > "$media_path.json" jq -n --arg id $id --arg url "$url" '{"id": $id, "url": $url}' > "$media_path.json"
cat "$media_path.json" cat "$media_path.json"
else
echo "Failed to upload $media_path"
fi fi
fi fi
else else