/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: 2021-01-14 13:11:37 UTC
  • Revision ID: git-v1:194f33c532da1520afdfc427fcfd1c4f235bb728
enc2firefox.sh

* Inisialised variabels to strings in start of scipt

* changed __help () to __usage ()

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