]> git.sev.monster Git - dotfiles.git/blobdiff - bin/dpass
fix gnu find depth warning, update comments
[dotfiles.git] / bin / dpass
index e8f446a5d3caccb2b979386ec1890b185234548d..c37942ba741c7bc8516ec0dce8acf8b2a9572fa0 100755 (executable)
--- a/bin/dpass
+++ b/bin/dpass
@@ -1,6 +1,8 @@
 #!/bin/sh
+. ~/bin/.check-busybox
 p="$1"
-if [ -z "$p" -a "$(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 <&-
+unset check-busybox
This page took 0.03416 seconds and 4 git commands to generate.