summaryrefslogtreecommitdiffstats
path: root/.github/scripts/docker-test.sh
diff options
context:
space:
mode:
Diffstat (limited to '.github/scripts/docker-test.sh')
-rwxr-xr-x.github/scripts/docker-test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/scripts/docker-test.sh b/.github/scripts/docker-test.sh
index 795711b1..22821d17 100755
--- a/.github/scripts/docker-test.sh
+++ b/.github/scripts/docker-test.sh
@@ -33,7 +33,9 @@ wait_for() {
printf "OK\n"
}
-apt-get update && apt-get upgrade -y && apt get install -y netcat
+if [ -z "$(command -v nc 2>/dev/null)" ] && [ -z "$(command -v netcat 2>/dev/null)" ]; then
+ sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y netcat
+fi
docker run -d --name=netdata \
-p 19999:19999 \