Show the url of the image used when debug is enabled

This commit is contained in:
BBaoVanC 2021-04-03 23:59:21 -05:00
parent f40b17ca06
commit baac624468
No known key found for this signature in database
GPG key ID: 18089E4E3CCF1D3A

View file

@ -58,6 +58,7 @@ else
fi
url=$(curl -fsSL "$imgurl" | jq -r ".url")
[ "$DEBUG" = "true" ] && echo "Using image at url $url"
curl -fsSLo "$tmpfile.jpg" "$url"
if [ "$TERM" = "xterm-kitty" ]; then