From e7a1703b6413ce8019cec3d2bdc42b060ce56240 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 4 Oct 2018 22:04:23 -0400 Subject: [PATCH] prompt uses printf for compatibility --- .scripts/prompt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.scripts/prompt b/.scripts/prompt index 0a2aba9..56de2f8 100755 --- a/.scripts/prompt +++ b/.scripts/prompt @@ -4,5 +4,4 @@ # For example: # `./prompt "Do you want to shutdown?" "shutdown -h now"` -[ $(echo -e "No\nYes" | dmenu -i -p "$1" -nb darkred -sb red -sf white -nf gray -fn mono) \ -== "Yes" ] && $2 +[ "$(printf "No\\nYes" | dmenu -i -p "$1" -nb darkred -sb red -sf white -nf gray )" = "Yes" ] && $2