update
This commit is contained in:
1 parent
f0a01f8870
commit
cab8aaf2ae
5 files changed
+51
-12
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user