fix(docker-setup): avoid set -e trap in FileBrowser mount discovery

((found_mounts++)) with found_mounts=0 evaluates the post-increment
expression to 0, which bash treats as exit code 1 under set -e,
silently killing the script on the first mount discovered.

Use arithmetic assignment instead to avoid the zero-exit trap.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-22 11:32:24 +01:00
parent 45cf527050
commit 8f340c211b
+1 -1
View File
@@ -1288,7 +1288,7 @@ install_filebrowser() {
[[ "$name" == .felhom-raw ]] && continue
volume_lines+=" - \"${mp%/}:/srv/${name}\""$'\n'
mount_comment+=" # ${mp%/} → /srv/${name}"$'\n'
((found_mounts++))
found_mounts=$(( found_mounts + 1 ))
done
fi