/useful/trunk-1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/useful/trunk-1

« back to all changes in this revision

Viewing changes to scripts/launch_youtube_chat.sh

  • Committer: Gustav Hartvigsson
  • Date: 2024-07-21 15:52:28 UTC
  • mfrom: (22.1.1)
  • Revision ID: git-v1:924d562846d864ade91a0ba932977a58e380ca6f
Merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env bash
2
2
####
 
3
# FILE NAME: launch_youtube_chat.sh
 
4
#
3
5
# Launch a web browser with the chat pop-out for a YouTube live stream.
 
6
#
4
7
####
5
 
ARGS=()
6
 
ARGS="${@}"
7
8
 
8
9
 
9
10
__DEFAULT_BROWSER=xdg-open
31
32
}
32
33
 
33
34
function __parse_args () {
34
 
  if [ -z "$1" ]
 
35
  if [[ -z "$1" ]]
35
36
  then
36
37
    echo "Try --help or -h."
37
38
    exit 1