Fix entrypoint conditionals
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler 2022-12-07 00:51:04 -05:00
parent c93e179aa1
commit cc9b2b8a09

View File

@ -3,11 +3,11 @@
set -e
function populate_env() {
if [[ -z "$MODEL_PATH" ] && [ ! -z "$1" ]]; then
if [[ -z "$MODEL_PATH" && ! -z "$1" ]]; then
export MODEL_PATH="$1"
fi
if [[ -z "$DATA_FOLDER" ] && [ ! -z "$2" ]]; then
if [[ -z "$DATA_FOLDER" && ! -z "$2" ]]; then
export DATA_FOLDER="$2"
fi
}