twitch-notify: lol

This commit is contained in:
yosh 2023-08-02 16:44:43 -05:00
parent 080cbd3f97
commit da6a2fc438
1 changed files with 1 additions and 1 deletions

View File

@ -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