aboutsummaryrefslogtreecommitdiff
path: root/bin/pinentry-auto
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-07-14 21:51:49 +0800
committerGuangxiong Lin <[email protected]>2022-07-14 21:51:49 +0800
commita385b4ab42c56208d36c896faf28002a6aa0f215 (patch)
treeac855a69a46f50c7bc62274b415c81ba60395863 /bin/pinentry-auto
parent7c5503a00200af09b9295b9d6acbb8978ff76770 (diff)
downloaddotfiles-a385b4ab42c56208d36c896faf28002a6aa0f215.tar.gz
dotfiles-a385b4ab42c56208d36c896faf28002a6aa0f215.tar.bz2
dotfiles-a385b4ab42c56208d36c896faf28002a6aa0f215.zip
Use pinentry-mac in macos
Diffstat (limited to 'bin/pinentry-auto')
-rwxr-xr-xbin/pinentry-auto7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/pinentry-auto b/bin/pinentry-auto
new file mode 100755
index 0000000..a3b141f
--- /dev/null
+++ b/bin/pinentry-auto
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+if [[ $(uname) == Darwin ]]; then
+ exec pinentry-mac "$@"
+fi
+
+exec pinentry "$@"