diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-10-04 22:04:23 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-10-04 22:04:23 -0400 |
| commit | e7a1703b6413ce8019cec3d2bdc42b060ce56240 (patch) | |
| tree | b1e91da3b270c35f11bd0f7d6be8d923d5451eb0 /.scripts | |
| parent | ed2a88660fda6030705567b6bb5cfc4ae154469b (diff) | |
| download | eibhear-e7a1703b6413ce8019cec3d2bdc42b060ce56240.tar.gz eibhear-e7a1703b6413ce8019cec3d2bdc42b060ce56240.tar.zst eibhear-e7a1703b6413ce8019cec3d2bdc42b060ce56240.zip | |
prompt uses printf for compatibility
Diffstat (limited to '.scripts')
| -rwxr-xr-x | .scripts/prompt | 3 |
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 |
