mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 04:49:34 -07:00
Give error message on old style config, but don't break
This commit is contained in:
parent
edb5946faf
commit
46d264c762
1 changed files with 8 additions and 0 deletions
|
@ -149,6 +149,14 @@ trimQuotes() {
|
|||
echo $__buffer
|
||||
}
|
||||
|
||||
HASCFG="${@: -1}"
|
||||
if [ ! -z "${HASCFG}" -a ! "${HASCFG:0:1}" = "-" ]; then
|
||||
if [ -f "${HASCFG}" ]; then
|
||||
echo "WARNING: Specifying config file as last argument is deprecated. Use --config <path> instead."
|
||||
CONFIGFILE=${HASCFG}
|
||||
fi
|
||||
fi
|
||||
|
||||
# Parse commandline
|
||||
ALLARGS=( "$@" )
|
||||
optstring="acCdfFhlpqrSsuU -l config:,dldir:,email:,pass:,server:,saveconfig"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue