fix(authelia): use POSIX-safe arithmetic to avoid exit code 1 with set -e (#11125)

This commit is contained in:
CanbiZ (MickLesk) 2026-01-24 18:20:53 +01:00 committed by GitHub
parent b17b555139
commit d356ba4822
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,11 +15,10 @@ update_os
fetch_and_deploy_gh_release "authelia" "authelia/authelia" "binary"
get_lxc_ip
MAX_ATTEMPTS=3
attempt=0
while true; do
((attempt++))
attempt=$((attempt + 1))
read -rp "${TAB3}Enter your domain or IP (ex. example.com or 192.168.1.100): " DOMAIN
if [[ -z "$DOMAIN" ]]; then
if ((attempt >= MAX_ATTEMPTS)); then