/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/video2lbry.sh

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-13 20:29:17 UTC
  • Revision ID: git-v1:4502736d0e4c4af9a28416c4b04bf9725893c5a0
Fixed up the rest of the if statments.

  I have no idea how it even worked before.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
}
39
39
 
40
40
__parse_args() {
41
 
  if [ -z "$1" ]
 
41
  if [[ -z "$1" ]]
42
42
  then
43
43
    echo "Try --help or -h."
44
44
    exit 1
82
82
}
83
83
 
84
84
__main () {
85
 
  if [ ! -e "$__IN_NAME" ]
 
85
  if [[ ! -e "$__IN_NAME" ]]
86
86
  then
87
87
    echo "missing input audio. Please provide."
88
88
    exit 1
89
89
  fi
90
90
  
91
 
  if [ $__OUT_NAME == "" ]
 
91
  if [[ $__OUT_NAME == "" ]]
92
92
  then
93
93
    echo "missing output file name. Please provide."
94
94
    exit 1
95
95
  fi
96
96
  
97
97
  
98
 
  if [ $__IN_NAME = ${__OUT_NAME}_lbry.mp4 ]
 
98
  if [[ $__IN_NAME == ${__OUT_NAME}_lbry.mp4 ]]
99
99
  then
100
100
    echo "Filenames can't be the same."
101
101
    exit