]> git.sev.monster Git - dotfiles.git/blobdiff - bin/dpass
actually set PINENTRY_USER_DATA, fix invocation
[dotfiles.git] / bin / dpass
index 3dc4c8f40c722ebb65ae8d31dbf05bdc20963d07..c37942ba741c7bc8516ec0dce8acf8b2a9572fa0 100755 (executable)
--- a/bin/dpass
+++ b/bin/dpass
@@ -1,6 +1,8 @@
 #!/bin/sh
 #!/bin/sh
+. ~/bin/.check-busybox
 p="$1"
 p="$1"
-if [ -z "$p" -a "$(basename "$(readlink -f "$(which ps)")")" =~ "/busybox" ]; then
+if [ -z "$p" ] && ! check-busybox ps; then
        p="[$(ps -o comm= -p $(ps -o ppid= -p $$))]";
 fi
 ~/bin/dmenu -p "$p" -fn Dina-10 -nb \#110800 -nf \#110800 -sb \#264bd2 -sf \#fdf6e3 <&-
        p="[$(ps -o comm= -p $(ps -o ppid= -p $$))]";
 fi
 ~/bin/dmenu -p "$p" -fn Dina-10 -nb \#110800 -nf \#110800 -sb \#264bd2 -sf \#fdf6e3 <&-
+unset check-busybox
This page took 0.029169 seconds and 4 git commands to generate.