From bf4b888fbb9e8e113435c384f0aad33130b1fe05 Mon Sep 17 00:00:00 2001 From: proxict Date: Tue, 27 Jan 2026 22:26:39 +0100 Subject: [PATCH] fix: don't limit COMMAND to only a single argument --- hyprshot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyprshot b/hyprshot index 0fb976f..11ea200 100755 --- a/hyprshot +++ b/hyprshot @@ -121,7 +121,7 @@ function save_geometry() { output="$SAVE_FULLPATH" wl-copy --type image/png < "$output" [ -z "$COMMAND" ] || { - "$COMMAND" "$output" + "${COMMAND[@]}" "$output" } else wl-copy --type image/png < <(grim -g "${geometry}" -) @@ -282,7 +282,7 @@ function args() { ;; --) shift # Skip -- argument - COMMAND=${@:2} + COMMAND=("${@:2}") break;; esac shift