From 0decc206f8cda483ae13a85af7a1bfa90e44eb85 Mon Sep 17 00:00:00 2001 From: johnstcn Date: Wed, 22 Jun 2022 17:52:36 +0000 Subject: [PATCH] scripts/develop.sh: remove nc dependency --- scripts/develop.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/develop.sh b/scripts/develop.sh index b784cf2ae7634..d8a5808223072 100755 --- a/scripts/develop.sh +++ b/scripts/develop.sh @@ -13,9 +13,9 @@ CODER_DEV_ADMIN_PASSWORD="${CODER_DEV_ADMIN_PASSWORD:-password}" set -u # Preflight checks: ensure we have our required dependencies, and make sure nothing is listening on port 3000 or 8080 -dependencies curl git go make nc yarn -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 -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 +dependencies curl git go make yarn +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 +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 echo '== Run "make build" before running this command to build binaries.' echo '== Without these binaries, workspaces will fail to start!'