From 131a78f639dbf3e80092cdeab8e46f045ab29fa6 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Tue, 29 Nov 2016 12:53:30 -0800 Subject: [PATCH] Remove deprecated support for config file at end of opts --- plexupdate.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index c6cbe8f..745f2e0 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -204,16 +204,6 @@ cleanup() { } trap cleanup EXIT -if [ ! $# -eq 0 ]; then - HASCFG="${@: -1}" - if [ ! -z "${HASCFG}" -a ! "${HASCFG:0:1}" = "-" -a ! "${@:(-2):1}" = "--config" ]; then - if [ -f "${HASCFG}" ]; then - warn "Specifying config file as last argument is deprecated. Use --config instead." - CONFIGFILE=${HASCFG} - fi - fi -fi - # Parse commandline ALLARGS=( "$@" ) optstring="-o acCdfFhlpPqrSsuUv -l config:,dldir:,email:,pass:,server:,port:"