Revision 1446566f setup.sh

View differences:

setup.sh
486 486
  fi
487 487
  printf "\n"
488 488

  
489
  # if --help or -h was specified, print the help text and exit
490
  if [[ $@ == *"--help"* || $@ == *"-h"* ]]; then
491
    printHelp
492
    printf "\n"
493
    cd $userdir
494
    quitScript
495
  fi
496

  
489 497
  # set log file if specified
490 498
  if [[ $@ == *"--log"* ]] || [[ $@ == *"--LOG"* ]]; then
491 499
    # get the parameter (file name)
......
509 517
      printf "\n"
510 518
    fi
511 519
  fi
512

  
513 520
  # log script name
514 521
  printLog "this is $(realpath ${BASH_SOURCE[0]})\n"
515 522

  
516
  # if --help or -h was specified, print the help text and exit
517
  if [[ $@ == *"--help"* || $@ == *"-h"* ]]; then
518
    printHelp
519
    printf "\n"
520
    cd $userdir
521
    quitScript
522
  fi
523

  
524 523
  # parse arguments
525 524
  local otherargs=()
526 525
  while [ $# -gt 0 ]; do

Also available in: Unified diff