Fix for Issue #116

This commit is contained in:
Jon Shaulis 2016-10-10 08:39:10 -04:00
commit e1dc978a37

View file

@ -157,7 +157,7 @@ trimQuotes() {
}
HASCFG="${@: -1}"
if [ ! -z "${HASCFG}" -a ! "${HASCFG:0:1}" = "-" ]; then
if [ ! -z "${HASCFG}" -a ! "${HASCFG:0:1}" = "-" -a ! "${@:(-2):1}" = "--config" ]; then
if [ -f "${HASCFG}" ]; then
echo "WARNING: Specifying config file as last argument is deprecated. Use --config <path> instead."
CONFIGFILE=${HASCFG}