Compare commits

..

1 Commits
0.4.1 ... main

Author SHA1 Message Date
d0ade80f19 fix(lego): do not trigger script abortion on wanted exit code != 0
(cherry picked from commit f2ee49abe4)
2026-02-03 14:18:59 +01:00

View File

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