summaryrefslogtreecommitdiffstats
path: root/.scripts/prompt
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-10-04 22:04:23 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-10-04 22:04:23 -0400
commite7a1703b6413ce8019cec3d2bdc42b060ce56240 (patch)
treeb1e91da3b270c35f11bd0f7d6be8d923d5451eb0 /.scripts/prompt
parented2a88660fda6030705567b6bb5cfc4ae154469b (diff)
downloadeibhear-e7a1703b6413ce8019cec3d2bdc42b060ce56240.tar.gz
eibhear-e7a1703b6413ce8019cec3d2bdc42b060ce56240.tar.zst
eibhear-e7a1703b6413ce8019cec3d2bdc42b060ce56240.zip
prompt uses printf for compatibility
Diffstat (limited to '.scripts/prompt')
-rwxr-xr-x.scripts/prompt3
1 files changed, 1 insertions, 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