Skip to content

Commit

Permalink
Use double parentheses for arithmetic expression (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored May 20, 2021
1 parent d1d120a commit 7ae378f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adguard/rootfs/etc/cont-init.d/adguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ yq write --inplace "${CONFIG}" \

# Bump schema version in case this is an upgrade path
schema_version=$(yq read "${CONFIG}" schema_version)
if bashio::var.has_value "${schema_version}"; then
if [[ "${schema_version-0}" -eq 7 ]]; then
if bashio::var.has_value "${schema_version+}"; then
if (( schema_version == 7 )); then
# Clean up old interface bind formats
yq delete --inplace "${CONFIG}" dns.bind_host
yq write --inplace "${CONFIG}" schema_version 8
fi

# Warn if this is an upgrade from below schema version 7, skip further process
if [[ "${schema_version}" -lt 7 ]]; then
if (( schema_version < 7 )); then
bashio::warning
bashio::warning "AdGuard Home needs to update its configuration schema"
bashio::warning "you might need to restart he add-on once more to complete"
Expand Down

0 comments on commit 7ae378f

Please sign in to comment.