From 67b1830304ace96e07f6939724639ab1f75ab0f2 Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Fri, 17 Jan 2025 13:20:37 +0800 Subject: [PATCH] fix re-splitting the elements in script --- pkgs/pinentry-selector.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/pinentry-selector.nix b/pkgs/pinentry-selector.nix index 17ed2ae..a8b04c4 100644 --- a/pkgs/pinentry-selector.nix +++ b/pkgs/pinentry-selector.nix @@ -8,18 +8,18 @@ pkgs.writeShellApplication { if [ -v XDG_SESSION_TYPE ]; then case $XDG_SESSION_TYPE in tty) - pinentry-tty $@;; + pinentry-tty "$@";; *) - pinentry-gnome3 $@;; + pinentry-gnome3 "$@";; esac elif [ -v SSH_CLIENT ] && [ -n "$SSH_CLIENT" ]; then - pinentry-tty $@ + pinentry-tty "$@" elif [ -v WAYLAND_DISPLAY ] && [ -n "$WAYLAND_DISPLAY" ]; then - pinentry-gnome3 $@ + pinentry-gnome3 "$@" elif [ -v DISPLAY ] && [ -n "$DISPLAY" ]; then - pinentry-gnome3 $@ + pinentry-gnome3 "$@" else - pinentry-tty $@ + pinentry-tty "$@" fi ''; }