Merge pull request #7707 from okxlin/renovate/alibahmanyar-simon-0.x

chore(deps): update alibahmanyar/simon docker tag to v0.3.5
This commit is contained in:
okxlin
2026-10-26 18:08:10 +08:00
committed by GitHub
7 changed files with 16 additions and 6 deletions
@@ -1,6 +1,6 @@
services:
simon:
image: "alibahmanyar/simon:0.3.4"
image: "alibahmanyar/simon:0.3.5"
container_name: ${CONTAINER_NAME}
restart: unless-stopped
networks:
@@ -9,21 +9,31 @@ fail() {
exit 1
}
read_env_value() {
local key="$1"
local value=""
value="$(sed -n "s/^${key}=//p" "$ENV_FILE" | tail -n 1)"
unquote_value() {
local value="$1"
case "$value" in
\"*\") value="${value#\"}"; value="${value%\"}" ;;
\'*\') value="${value#\'}"; value="${value%\'}" ;;
esac
value="${value//\\\$/\$}"
printf '%s\n' "$value"
}
read_env_value() {
local key="$1"
local value=""
value="$(sed -n "s/^${key}=//p" "$ENV_FILE" | tail -n 1)"
unquote_value "$value"
}
effective_value() {
local key="$1"
local value=""
if [[ -v "$key" ]]; then
printf '%s\n' "${!key}"
value="${!key}"
fi
if [[ -n "$value" ]]; then
unquote_value "$value"
else
read_env_value "$key"
fi