Fix for Issue #116 (#117)

This commit is contained in:
Jon 2016-10-11 21:44:40 -04:00 committed by Henric Andersson
parent d51ed35a81
commit 6b8b40eb7a

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}