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