#!/bin/bash # # cobrand-checks: Check for template changes in a version upgrade set -e # Read in command line arguments POSITIONAL=() while [[ $# -gt 0 ]] do key="$1" case $key in -h|--help) HELP=yes shift # past argument ;; -l|--list) LIST=yes shift # past argument ;; -d|--diff) DIFF=yes shift # past argument ;; -i|--interactive) INTERACTIVE=yes shift # past argument ;; *) # unknown option POSITIONAL+=("$1") # save it in an array for later shift # past argument ;; esac done set -- "${POSITIONAL[@]}" # restore positional parameters # Parse command line arguments or work out defaults function help { cat <