twitch-notify: lol
This commit is contained in:
parent
080cbd3f97
commit
da6a2fc438
|
@ -61,7 +61,7 @@ DIR="${XDG_RUNTIME_DIR:-"${TMPDIR:-/tmp}"}/twitch-notify-dir-$USER"
|
|||
while getopts :t:l OPT; do
|
||||
case "$OPT" in
|
||||
t) SLEEP_INTERVAL="$OPTARG" ;; # in seconds, default 180
|
||||
l) [ -d "$DIR" ] && printf 'ONLINE CHANNELS:\n' && printf '%s\n' "$DIR"/*; exit 0 ;;
|
||||
l) [ -d "$DIR" ] && printf 'ONLINE CHANNELS:\n' && ls -w 1 "$DIR"; exit 0 ;;
|
||||
*) fail "unknown option: -$OPTARG" ;;
|
||||
esac
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue