This commit is contained in:
darkclip committed 2024-02-13 16:04:54 +08:00
1 parent f0a01f8870
commit cab8aaf2ae
5 files changed
+51 -12

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
main(){
echo "deb https://packagecloud.io/ookla/speedtest-cli/debian/ $OS_CODE main" | \
tee /etc/apt/sources.list.d/ookla_speedtest-cli.list
curl -fsSL "https://packagecloud.io/ookla/speedtest-cli/gpgkey" | \
gpg --dearmor | tee /etc/apt/trusted.gpg.d/ookla_speedtest-cli-archive-keyring.gpg > /dev/null
command="nala"
command -v $command &>/dev/null || command="apt"
$command update
$command install -y speedtest
}