ignore curl error and fix typo
This commit is contained in:
parent
8dde6a92b1
commit
d397fb6655
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue