Fix entrypoint conditionals
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tyler 2022-12-07 00:51:04 -05:00
parent c93e179aa1
commit cc9b2b8a09
1 changed files with 2 additions and 2 deletions

View File

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