diff --git a/src/inc/variables.shinc b/src/inc/variables.shinc index 9b041fc..bfde914 100644 --- a/src/inc/variables.shinc +++ b/src/inc/variables.shinc @@ -15,37 +15,37 @@ DRY_RUN=0 __initVariables() { - # Loop over parameters and set the variables - while [[ ${#} -gt 0 ]]; do - case "${1}" in - --dry-run) - DRY_RUN=1 - ;; + # Loop over parameters and set the variables + while [[ ${#} -gt 0 ]]; do + case "${1}" in + --dry-run) + DRY_RUN=1 + ;; *.css|*.scss|*.sass|*.less) __path_exists "${1}" if [[ $? -ne 0 ]]; then __err "Specified path does not exist: ${1}" - continue + else + CSS_FILES+=(${1}) fi - CSS_FILES+=(${1}) ;; *.js|*.jsx) __path_exists "${1}" if [[ $? -ne 0 ]]; then __err "Specified path does not exist: ${1}" - continue + else + JS_FILES+=(${1}) fi - JS_FILES+=(${1}) ;; *.php|*.phtml) __path_exists "${1}" if [[ $? -ne 0 ]]; then __err "Specified path does not exist: ${1}" - continue + else + PHP_FILES+=(${1}) fi - PHP_FILES+=(${1}) ;; - esac - shift 1 - done + esac + shift 1 + done }