mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
fix(docker): remove overriding config options by empty env vars
This commit is contained in:
parent
91601eb0eb
commit
349325be70
@ -24,7 +24,10 @@ file_env() {
|
|||||||
val="$(cat "${fileVar}")"
|
val="$(cat "${fileVar}")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export "${1}"="$val"
|
if [ -n "${val:-}" ]; then
|
||||||
|
export "${1}"="$val"
|
||||||
|
fi
|
||||||
|
|
||||||
unset "${1}_FILE"
|
unset "${1}_FILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user