Skip to content

Commit

Permalink
Merge pull request #184 from retokromer/patch-1
Browse files Browse the repository at this point in the history
delete unused option and undefined value
  • Loading branch information
dericed authored Oct 23, 2017
2 parents 5d6650c + 25f65e0 commit 672abca
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions mmconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,24 @@ if [[ "$(uname -s)" = "Darwin" ]] ; then
fi

_usage(){
echo
echo "$(basename "${0}") ${VERSION}"
echo " -t set configuration file using the CLI"
exit
cat <<EOS
$(basename "${0}")
-a set configuration file using the GUI (default on macOS)
-t set configuration file using the CLI
EOS
}

# local variables
REQUIRED_VARIABLES=("OUTDIR_INGESTFILE" "OUTDIR_INGESTXDCAM" "OUTDIR_PAPER" "AIP_STORAGE" "PODCASTDELIVER" "YOUTUBEDELIVER" "TMPDIR" "REGEX4PODCAST" "REGEX4IA" "DVDLABELPREFIX" "OMNEONIP" "OMNEONPATH" "CUSTOM_LOG_DIR" "LTO_INDEX_DIR" "LOCAL_MM_DIR" "EMAIL_FROM" "MAKEYOUTUBE_DELIVERY_EMAIL_TO" "MAKEBROADCAST_DELIVERY_EMAIL_TO" "FILE_MAKER_DB" "VOLADJUST" "PREMIS_DB" "SQL_ERROR_EMAIL_TO" "PREMIS_PROFILE" "PREMIS_NAME" "PERCEPTUAL_HASH")

OPTIND=1

while getopts ":F:abth" OPT ; do
while getopts ":ath" OPT ; do
case "${OPT}" in
F) FORMULA="${OPTARG}" ;;
a) RUNPASHUA="Y" ;;
t) RUNPASHUA="N" ;;
h) _usage ;;
:) echo "Option -${OPTARG} requires an argument" ; exit 1 ;;
*) echo "bad option -${OPTARG}" ; _usage ;;
h) _usage ; exit 0 ;;
*) echo "bad option -${OPTARG}" ; _usage ; exit 1 ;;
esac
done

Expand Down

0 comments on commit 672abca

Please sign in to comment.