]> git.sev.monster Git - dotfiles.git/commitdiff
fix dpass
authords6 <git@ds6.pw>
Thu, 19 Mar 2020 02:46:31 +0000 (21:46 -0500)
committersev <git@sev.monster>
Fri, 5 Apr 2024 21:27:39 +0000 (16:27 -0500)
bin/dpass

index e8f446a5d3caccb2b979386ec1890b185234548d..3dc4c8f40c722ebb65ae8d31dbf05bdc20963d07 100755 (executable)
--- 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 <&-
This page took 0.031547 seconds and 4 git commands to generate.