ignore curl error and fix typo

This commit is contained in:
Jakub Kropáček 2025-07-09 08:55:00 +02:00
parent 8dde6a92b1
commit d397fb6655
Signed by: JustScreaMy
GPG key ID: 4EC6A2C45D75FC86

View file

@ -59,8 +59,8 @@ writeShellScriptBin "whst" ''
tmpfile="$(mktemp --suffix=.jpg)" tmpfile="$(mktemp --suffix=.jpg)"
if ! ${curl}/bin/curl -fsSL "$url" -o "$tmpfile"; then if ! ${curl}/bin/curl -fsSL "$url" -o "$tmpfile" 2>/dev/null; then
echo "Error: The status code $status_code is non existemnt :(" >&2 echo "Error: The status code $status_code is non existent :(" >&2
rm -f "$tmpfile" rm -f "$tmpfile"
exit 1 exit 1
fi fi