From ee9ad10b5cc9850c3e2ed1946f70e0cef429fb48 Mon Sep 17 00:00:00 2001 From: Hunt Date: Tue, 3 Jun 2025 11:58:25 -0700 Subject: Refactor --- dots/home/scripts/pinentry.sh.j2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 dots/home/scripts/pinentry.sh.j2 (limited to 'dots/home/scripts/pinentry.sh.j2') diff --git a/dots/home/scripts/pinentry.sh.j2 b/dots/home/scripts/pinentry.sh.j2 new file mode 100755 index 0000000..98352ac --- /dev/null +++ b/dots/home/scripts/pinentry.sh.j2 @@ -0,0 +1,16 @@ +#!/bin/bash + +#-- -- +bin="${HOMEBREW_PREFIX:-"/usr"}/bin" +case "$PINENTRY_USER_DATA" in + *USE_TTY*) pinentry=$bin/pinentry-tty ;; + *USE_CURSES*) pinentry=$bin/pinentry-curses ;; + *USE_QT*) pinentry=$bin/pinentry-qt ;; + *USE_MAC*) pinentry=$bin/pinentry-mac ;; + *USE_GTK2*) pinentry=$bin/pinentry-gtk-2 ;; + *USE_GNOME3*) pinentry=$bin/pinentry-gnome3 ;; + *USE_X11*) pinentry=$bin/pinentry-x11 ;; +esac + +exec $pinentry "$@" +#-- -- -- cgit v1.2.3-70-g09d2