Fix while condition for non existing files

This commit is contained in:
Arnie 2017-12-25 08:41:17 +01:00
parent d9163bcff8
commit e664352139

View File

@ -25,25 +25,25 @@ __initVariables() {
__path_exists "${1}"
if [[ $? -ne 0 ]]; then
__err "Specified path does not exist: ${1}"
continue
fi
else
CSS_FILES+=(${1})
fi
;;
*.js|*.jsx)
__path_exists "${1}"
if [[ $? -ne 0 ]]; then
__err "Specified path does not exist: ${1}"
continue
fi
else
JS_FILES+=(${1})
fi
;;
*.php|*.phtml)
__path_exists "${1}"
if [[ $? -ne 0 ]]; then
__err "Specified path does not exist: ${1}"
continue
fi
else
PHP_FILES+=(${1})
fi
;;
esac
shift 1