Compare commits
No commits in common. "lego/set-e-fix" and "main" have entirely different histories.
lego/set-e
...
main
@ -8,10 +8,8 @@ if [[ -n "${LEGO_HTTP_FALLBACK_PORT:-}" ]]; then
|
|||||||
echo "nc not found (in PATH), exiting"
|
echo "nc not found (in PATH), exiting"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
set +e
|
nc -z 127.0.0.1 $LEGO_HTTP_PORT;
|
||||||
nc_exit_code=$(nc -z 127.0.0.1 $LEGO_HTTP_PORT);
|
if [[ $? -eq 0 ]]; then
|
||||||
set -e
|
|
||||||
if [[ $nc_exit_code -eq 0 ]]; then
|
|
||||||
LEGO_HTTP_PORT=$LEGO_HTTP_FALLBACK_PORT
|
LEGO_HTTP_PORT=$LEGO_HTTP_FALLBACK_PORT
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user