chain gateway build fix
This commit is contained in:
@@ -82,7 +82,18 @@ set -euo pipefail
|
|||||||
cd "${REMOTE_DIR}/compose"
|
cd "${REMOTE_DIR}/compose"
|
||||||
set -a
|
set -a
|
||||||
. ../env/.env.runtime
|
. ../env/.env.runtime
|
||||||
. ../env/.env.version
|
load_kv_file() {
|
||||||
|
file="$1"
|
||||||
|
while IFS= read -r line || [ -n "$line" ]; do
|
||||||
|
case "$line" in
|
||||||
|
''|\#*) continue ;;
|
||||||
|
esac
|
||||||
|
if printf '%s' "$line" | grep -Eq '^[[:alpha:]_][[:alnum:]_]*='; then
|
||||||
|
eval "$line"
|
||||||
|
fi
|
||||||
|
done <"$file"
|
||||||
|
}
|
||||||
|
load_kv_file ../env/.env.version
|
||||||
set +a
|
set +a
|
||||||
|
|
||||||
if base64 -d >/dev/null 2>&1 <<<'AA=='; then
|
if base64 -d >/dev/null 2>&1 <<<'AA=='; then
|
||||||
|
|||||||
@@ -108,7 +108,18 @@ set -euo pipefail
|
|||||||
cd "${REMOTE_DIR}/compose"
|
cd "${REMOTE_DIR}/compose"
|
||||||
set -a
|
set -a
|
||||||
. ../env/.env.runtime
|
. ../env/.env.runtime
|
||||||
. ../env/.env.version
|
load_kv_file() {
|
||||||
|
file="$1"
|
||||||
|
while IFS= read -r line || [ -n "$line" ]; do
|
||||||
|
case "$line" in
|
||||||
|
''|\#*) continue ;;
|
||||||
|
esac
|
||||||
|
if printf '%s' "$line" | grep -Eq '^[[:alpha:]_][[:alnum:]_]*='; then
|
||||||
|
eval "$line"
|
||||||
|
fi
|
||||||
|
done <"$file"
|
||||||
|
}
|
||||||
|
load_kv_file ../env/.env.version
|
||||||
set +a
|
set +a
|
||||||
|
|
||||||
if base64 -d >/dev/null 2>&1 <<<'AA=='; then
|
if base64 -d >/dev/null 2>&1 <<<'AA=='; then
|
||||||
|
|||||||
Reference in New Issue
Block a user