prompt uses printf for compatibility

This commit is contained in:
Luke Smith 2018-10-04 22:04:23 -04:00
parent ed2a88660f
commit e7a1703b64

View file

@ -4,5 +4,4 @@
# For example: # For example:
# `./prompt "Do you want to shutdown?" "shutdown -h now"` # `./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) \ [ "$(printf "No\\nYes" | dmenu -i -p "$1" -nb darkred -sb red -sf white -nf gray )" = "Yes" ] && $2
== "Yes" ] && $2