mirror of
https://github.com/okxlin/appstore.git
synced 2026-11-02 00:05:17 +00:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user