Fix entrypoint conditionals
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c93e179aa1
commit
cc9b2b8a09
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user