From 56016df299661f9c53d50213cf72e02d26f8ae85 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 14 Nov 2021 22:05:26 +0100 Subject: [PATCH] Install rust only if not already installed --- installSpotify.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/installSpotify.sh b/installSpotify.sh index 6519105..9a50f9e 100644 --- a/installSpotify.sh +++ b/installSpotify.sh @@ -9,8 +9,7 @@ sudo apt update sudo apt install spotify-client -y # We install the prerequisites to build and install the patch (Git and Rust will be installed and not removed) sudo apt install git make build-essential -y -curl https://sh.rustup.rs -sSf | sh -s -- -y -source $HOME/.cargo/env +which rustc &> /dev/null || curl https://sh.rustup.rs -sSf | sh -s -- -y && source $HOME/.cargo/env # Install rust if not already installed # Download and build the patch git clone https://github.com/abba23/spotify-adblock.git cd spotify-adblock