prompt uses printf for compatibility
This commit is contained in:
parent
ed2a88660f
commit
e7a1703b64
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue