~emersion/dotfiles

f219dc8e45da6d19573e1dfa0c31c39c460341c3 — Simon Ser 2 months ago 9add22d
bin/srht: print whole JSON response on error
1 files changed, 1 insertions(+), 1 deletions(-)

M bin/srht
M bin/srht => bin/srht +1 -1
@@ 10,5 10,5 @@ fi

url=$(curl -H "Authorization: token $oauth_token" \
	-F "file=@$src" "https://legacy.sr.ht/api/upload" \
	| jq -r '.url')
	| jq -r '.url // .')
echo "$url"