fix: Unset -e during nc command

This commit is contained in:
Jadyn Emma Jäger 2025-05-01 14:16:39 +02:00
parent 27d9555428
commit e93bb182c0
Signed by: jadyn
GPG Key ID: 632410170049FDDA

View File

@ -8,7 +8,9 @@ if [[ -n "${LEGO_HTTP_FALLBACK_PORT:-}" ]]; then
echo "nc not found (in PATH), exiting"
exit 1
fi
set +e
nc_exit_code=$(nc -z 127.0.0.1 $LEGO_HTTP_PORT);
set -e
if [[ $nc_exit_code -eq 0 ]]; then
LEGO_HTTP_PORT=$LEGO_HTTP_FALLBACK_PORT
fi