From 46c52068e2e57fbb3a620237b4e63387d8a4e0fe Mon Sep 17 00:00:00 2001 From: PorridgePi Date: Thu, 29 Sep 2022 17:51:00 +0800 Subject: [PATCH] bootstrap: librespeed-cli: refactor: Move aarch64 arm64 section out from Linux --- .config/yadm/bootstrap.d/librespeed-cli.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/yadm/bootstrap.d/librespeed-cli.sh b/.config/yadm/bootstrap.d/librespeed-cli.sh index dd4b6e6..a1079ae 100755 --- a/.config/yadm/bootstrap.d/librespeed-cli.sh +++ b/.config/yadm/bootstrap.d/librespeed-cli.sh @@ -2,12 +2,12 @@ if ! command -v librespeed-cli &> /dev/null; then echo 'Installing librespeed-cli' source $HOME/.zshenv + if [[ "$ARCH" == "aarch64" ]]; then + ARCH=arm64 + fi if [[ "$OSNAME" == "Linux" ]]; then # Linux - if [[ "$ARCH" == "aarch64" ]]; then - ARCH=arm64 - fi URL=$(curl -fsSL https://api.github.com/repos/librespeed/speedtest-cli/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep linux | grep $ARCH) mkdir -p $HOME/.temp/librespeed curl -fsSL -o $HOME/.temp/librespeed/librespeed.tar.gz "$URL"