Skip to content

Commit a0c8e70

Browse files
authored
scripts/develop.sh: remove nc dependency (#2590)
1 parent 3f97767 commit a0c8e70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/develop.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ CODER_DEV_ADMIN_PASSWORD="${CODER_DEV_ADMIN_PASSWORD:-password}"
1313
set -u
1414

1515
# Preflight checks: ensure we have our required dependencies, and make sure nothing is listening on port 3000 or 8080
16-
dependencies curl git go make nc yarn
17-
nc -z 127.0.0.1 3000 >/dev/null 2>&1 && echo '== ERROR: something is listening on port 3000. Kill it and re-run this script.' && exit 1
18-
nc -z 127.0.0.1 8080 >/dev/null 2>&1 && echo '== ERROR: something is listening on port 8080. Kill it and re-run this script.' && exit 1
16+
dependencies curl git go make yarn
17+
curl --fail http://127.0.0.1:3000 >/dev/null 2>&1 && echo '== ERROR: something is listening on port 3000. Kill it and re-run this script.' && exit 1
18+
curl --fail http://127.0.0.1:8080 >/dev/null 2>&1 && echo '== ERROR: something is listening on port 8080. Kill it and re-run this script.' && exit 1
1919

2020
echo '== Run "make build" before running this command to build binaries.'
2121
echo '== Without these binaries, workspaces will fail to start!'

0 commit comments

Comments
 (0)