From d397fb6655c0484466d7e293d2e1bf0b470d7b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Krop=C3=A1=C4=8Dek?= Date: Wed, 9 Jul 2025 08:55:00 +0200 Subject: [PATCH] ignore curl error and fix typo --- packages/whst/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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