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