Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make it easy to quit on OS X

  • Loading branch information...
commit fbb06de252d792e7b6ce8cd5163e952214729a07 1 parent d5adf41
@reduzent authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  watchteleboy
View
3  watchteleboy
@@ -443,7 +443,7 @@ function set_ui_window_params {
function channel_dialog {
while true
do
- chanlist=$(echo "$CHANNELS" | cut -d " " -f 1)
+ chanlist="$(echo "$CHANNELS" | cut -d " " -f 1) $( uname | grep "Darwin" > /dev/null && echo QUIT)"
if $whiptail
then
wpsetdefault=""
@@ -471,6 +471,7 @@ function channel_dialog {
PS3="Choose a channel: "
select CHANNEL in $chanlist
do
+ [ "$CHANNEL" == "QUIT" ] && exit 0
[ "$CHANNEL" != "" ] && break
done
fi
Please sign in to comment.
Something went wrong with that request. Please try again.