/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-11-02 21:10:35 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20241102211035-ev3nfuwqytbdabxd
* Fixed useful.inc.sh
* Fixed if statements not working in do-offline-updates.sh

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
 
5
# Authors:
 
6
#    Gustav Hartvigsson 2024
 
7
#    Distributed under the Cool Licence 1.1
 
8
#
 
9
#
3
10
# Launch a web browser with the chat pop-out for a YouTube live stream.
 
11
#
4
12
####
5
 
ARGS=()
6
 
ARGS="${@}"
7
13
 
8
14
 
9
15
__DEFAULT_BROWSER=xdg-open
31
37
}
32
38
 
33
39
function __parse_args () {
34
 
  if [ -z "$1" ]
 
40
  if [[ -z "$1" ]]
35
41
  then
36
42
    echo "Try --help or -h."
37
43
    exit 1