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

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-13 20:20:58 UTC
  • Revision ID: git-v1:f59be620d619a07325e3e72deffd799bfddcfb8a
wav2mp4.sh - Fixed if statments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
 
42
42
__parse_args() {
43
 
  if [ -z "$1" ]
 
43
  if [[ -z "$1" ]]
44
44
  then
45
45
    echo "Try --help or -h."
46
46
    exit 1
388
388
 
389
389
__main () {
390
390
  
391
 
  if [ $__USE_DIFFERENT_IMAGE = true ]
 
391
  if [[ $__USE_DIFFERENT_IMAGE == true ]]
392
392
  then
393
393
    # Let's not make this any more complicated.
394
394
    __TMP_IMAGE_NAME=$__OTHER_IMAGE_NAME
396
396
    __write_image
397
397
  fi
398
398
  
399
 
  if [ ! -e "$__IN_NAME" ]
 
399
  if [[ ! -e "$__IN_NAME" ]]
400
400
  then
401
401
    echo "missing input audio. Please provide."
402
402
    exit 1
403
403
  fi
404
404
  
405
 
  if [ $__OUT_NAME == "" ]
 
405
  if [[ $__OUT_NAME == "" ]]
406
406
  then
407
407
    echo "missing output file name. Please provide."
408
408
    exit 1
411
411
  
412
412
  ___do_convertion
413
413
  
414
 
  if [ $__USE_DIFFERENT_IMAGE = false ]
 
414
  if [[ $__USE_DIFFERENT_IMAGE == false ]]
415
415
  then
416
416
    __do_cleanup
417
417
  fi