From 8a3ecea2a3cbc0381ba6d88b90203e782668ef16 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 14 Nov 2021 22:15:12 +0100 Subject: [PATCH] use parenthesis instead of brackets --- installRust.sh | 3 ++- installSpotify.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/installRust.sh b/installRust.sh index 1e656be..670d3f6 100644 --- a/installRust.sh +++ b/installRust.sh @@ -1,4 +1,5 @@ -which curl &> /dev/null || { sudo apt update; sudo apt install curl -y } # Install curl if not already installed +which curl &> /dev/null || ( sudo apt update; sudo apt install curl -y ) # Install curl if not already installed + # Install rust curl https://sh.rustup.rs -sSf | sh -s -- -y source $HOME/.cargo/env diff --git a/installSpotify.sh b/installSpotify.sh index 5687a12..9243083 100644 --- a/installSpotify.sh +++ b/installSpotify.sh @@ -9,7 +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 -which rustc &> /dev/null || curl https://sh.rustup.rs -sSf | { sh -s -- -y; source $HOME/.cargo/env } # Install rust if not already installed +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