diff options
author | Hunt <lizhunt@amazon.com> | 2025-06-03 11:58:25 -0700 |
---|---|---|
committer | Hunt <lizhunt@amazon.com> | 2025-06-03 11:58:25 -0700 |
commit | ee9ad10b5cc9850c3e2ed1946f70e0cef429fb48 (patch) | |
tree | b6b0411b02127951cc28292425a35a1830c2758d /dots/home | |
parent | 64d060d2730cd212b2932879036eb33f7336ef38 (diff) | |
download | dotfiles-ee9ad10b5cc9850c3e2ed1946f70e0cef429fb48.tar.gz dotfiles-ee9ad10b5cc9850c3e2ed1946f70e0cef429fb48.zip |
Refactor
Diffstat (limited to 'dots/home')
-rw-r--r-- | dots/home/.local/bin/.gitkeep | 0 | ||||
-rw-r--r-- | dots/home/.pubkey.j2 | 1 | ||||
-rwxr-xr-x | dots/home/scripts/pinentry.sh | 20 | ||||
-rwxr-xr-x | dots/home/scripts/pinentry.sh.j2 | 16 |
4 files changed, 16 insertions, 21 deletions
diff --git a/dots/home/.local/bin/.gitkeep b/dots/home/.local/bin/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/dots/home/.local/bin/.gitkeep diff --git a/dots/home/.pubkey.j2 b/dots/home/.pubkey.j2 deleted file mode 100644 index e4e3602..0000000 --- a/dots/home/.pubkey.j2 +++ /dev/null @@ -1 +0,0 @@ -{{ pgp.asc }} diff --git a/dots/home/scripts/pinentry.sh b/dots/home/scripts/pinentry.sh deleted file mode 100755 index f02ee6f..0000000 --- a/dots/home/scripts/pinentry.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -source log.sh "pinentry.sh" - -#-- <gpg> -- -bin="${HOMEBREW_PREFIX:-"/usr"}/bin" -case "$PINENTRY_USER_DATA" in - *USE_TTY*) pe=$bin/pinentry-tty ;; - *USE_CURSES*) pe=$bin/pinentry-curses ;; - *USE_QT*) pe=$bin/pinentry-qt ;; - *USE_MAC*) pe=$bin/pinentry-mac ;; - *USE_GTK2*) pe=$bin/pinentry-gtk-2 ;; - *USE_GNOME3*) pe=$bin/pinentry-gnome3 ;; - *USE_X11*) pe=$bin/pinentry-x11 ;; -esac - -log DEBUG "$pe" - -exec $pe "$@" -#-- </gpg> -- 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 + +#-- <gpg> -- +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 "$@" +#-- </gpg> -- |