mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 21:03:19 -07:00
Remove deprecated support for config file at end of opts
This commit is contained in:
parent
b1dc95ca13
commit
131a78f639
1 changed files with 0 additions and 10 deletions
|
@ -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 <path> instead."
|
||||
CONFIGFILE=${HASCFG}
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Parse commandline
|
||||
ALLARGS=( "$@" )
|
||||
optstring="-o acCdfFhlpPqrSsuUv -l config:,dldir:,email:,pass:,server:,port:"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue