Add error message when upload fails
This commit is contained in:
1 parent
01e1e2f33e
commit
6adc9eb7a7
1 file changed
+2
@@ -22,6 +22,8 @@ if test -f "$media_path"; then
|
||||
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"
|
||||
cat "$media_path.json"
|
||||
else
|
||||
echo "Failed to upload $media_path"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user