From: ds6 Date: Thu, 19 Mar 2020 02:46:31 +0000 (-0500) Subject: fix dpass X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/245313ba89372f26ac669889f5aee36de5c3ebb8?ds=inline fix dpass --- diff --git a/bin/dpass b/bin/dpass index e8f446a..3dc4c8f 100755 --- a/bin/dpass +++ b/bin/dpass @@ -1,6 +1,6 @@ #!/bin/sh p="$1" -if [ -z "$p" -a "$(readlink -f $(which ps))" =~ "/busybox" ]; then +if [ -z "$p" -a "$(basename "$(readlink -f "$(which ps)")")" =~ "/busybox" ]; 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 <&-