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

Lines changed: 3 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy