Fix while condition for non existing files
This commit is contained in:
parent
d9163bcff8
commit
e664352139
@ -25,25 +25,25 @@ __initVariables() {
|
|||||||
__path_exists "${1}"
|
__path_exists "${1}"
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
__err "Specified path does not exist: ${1}"
|
__err "Specified path does not exist: ${1}"
|
||||||
continue
|
else
|
||||||
fi
|
|
||||||
CSS_FILES+=(${1})
|
CSS_FILES+=(${1})
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*.js|*.jsx)
|
*.js|*.jsx)
|
||||||
__path_exists "${1}"
|
__path_exists "${1}"
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
__err "Specified path does not exist: ${1}"
|
__err "Specified path does not exist: ${1}"
|
||||||
continue
|
else
|
||||||
fi
|
|
||||||
JS_FILES+=(${1})
|
JS_FILES+=(${1})
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*.php|*.phtml)
|
*.php|*.phtml)
|
||||||
__path_exists "${1}"
|
__path_exists "${1}"
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
__err "Specified path does not exist: ${1}"
|
__err "Specified path does not exist: ${1}"
|
||||||
continue
|
else
|
||||||
fi
|
|
||||||
PHP_FILES+=(${1})
|
PHP_FILES+=(${1})
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
shift 1
|
shift 1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user