From 32dbed0a59e211f1e44a696ef6705db3768ae7bb Mon Sep 17 00:00:00 2001 From: Conor425 Date: Mon, 19 May 2025 00:43:59 +0100 Subject: [PATCH] Add variable for cli version --- ookla-speedtest-cli-linux-test.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ookla-speedtest-cli-linux-test.sh b/ookla-speedtest-cli-linux-test.sh index 65d9abc..82e50c9 100755 --- a/ookla-speedtest-cli-linux-test.sh +++ b/ookla-speedtest-cli-linux-test.sh @@ -1,5 +1,7 @@ #!/bin/bash + +VERSION="1.2.0" ARCH=$(uname -m) if [ "$ARCH" == "armv7l" ]; then @@ -8,11 +10,11 @@ else ARCH_TAR="$ARCH" fi -wget https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-$ARCH_TAR.tgz -tar -xvzf ookla-speedtest-1.2.0-linux-$ARCH_TAR.tgz +wget https://install.speedtest.net/app/cli/ookla-speedtest-$VERSION-linux-$ARCH_TAR.tgz +tar -xvzf ookla-speedtest-$VERSION-linux-$ARCH_TAR.tgz ./speedtest --server-id=48505 sleep 1 rm speedtest rm speedtest.5 rm speedtest.md -rm ookla-speedtest-1.2.0-linux-$ARCH_TAR.tgz \ No newline at end of file +rm ookla-speedtest-$VERSION-linux-$ARCH_TAR.tgz \ No newline at end of file