summaryrefslogtreecommitdiff
path: root/bin/wmenu-yesno
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wmenu-yesno')
-rwxr-xr-xbin/wmenu-yesno4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/wmenu-yesno b/bin/wmenu-yesno
new file mode 100755
index 0000000..e719215
--- /dev/null
+++ b/bin/wmenu-yesno
@@ -0,0 +1,4 @@
+#!/command/execlineb -s1
+backtick -ED No answer { heredoc 0 "Yes\nNo\n" wmenu -p ${1} }
+if -t { test ${answer} = Yes }
+exec ${@}