install curl only if not already installed

This commit is contained in:
Mylloon 2021-11-14 20:12:38 +01:00
parent 8d2b998fbe
commit 68b989b158
3 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,5 @@
# Install SDKMAN
which curl &> /dev/null || sudo apt update && sudo apt install curl # Install curl if not already installed
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"

View file

@ -2,8 +2,7 @@
sudo snap remove spotify 2> /dev/null
sudo flatpak uninstall com.spotify.Client 2> /dev/null
# We install the version from the official website
sudo apt update
sudo apt install curl -y
which curl &> /dev/null || sudo apt update && sudo apt install curl # Install curl if not already installed
curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add -
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt update

View file

@ -1,6 +1,5 @@
# We add the official deposit of Syncthing
sudo apt update
sudo apt install curl -y
which curl &> /dev/null || sudo apt update && sudo apt install curl # Install curl if not already installed
sudo curl -s -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
# Install Syncthing