Clean up install output

This commit is contained in:
Sage Vaillancourt 2023-08-26 00:44:39 -04:00
parent 081998a894
commit 6f76070a02
1 changed files with 15 additions and 11 deletions

24
copy.sh
View File

@ -25,9 +25,11 @@ if [[ "$1" == "--files-only" ]]; then
exit 0 exit 0
fi fi
# Install required packages echo
echo "Installing required packages..."
echo -n "Rust is " echo -n "Rust is "
if ! command -v cargo; then if ! command -v cargo &> /dev/null; then
echo "not installed. Installing..." echo "not installed. Installing..."
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
else else
@ -35,11 +37,11 @@ else
fi fi
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
if command -v cargo && ! command -v bat; then if command -v cargo &> /dev/null && ! command -v bat &> /dev/null; then
cargo install bat cargo install bat
fi fi
echo "nvm is " echo -n "nvm is "
if ! test -d "$HOME/.nvm"; then if ! test -d "$HOME/.nvm"; then
echo "not installed. Installing..." echo "not installed. Installing..."
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
@ -54,8 +56,8 @@ else
echo "already installed." echo "already installed."
fi fi
echo "dotnet is " echo -n "dotnet is "
if ! command -v dotnet; then if ! command -v dotnet &> /dev/null; then
echo "not installed. Installing..." echo "not installed. Installing..."
wget https://dot.net/v1/dotnet-install.sh -O /tmp/dotnet-install.sh wget https://dot.net/v1/dotnet-install.sh -O /tmp/dotnet-install.sh
chmod +x /tmp/dotnet-install.sh chmod +x /tmp/dotnet-install.sh
@ -65,8 +67,8 @@ else
echo "already installed." echo "already installed."
fi fi
echo "starship is " echo -n "starship is "
if ! command -v starship; then if ! command -v starship &> /dev/null; then
echo "not installed. Installing..." echo "not installed. Installing..."
curl -sS https://starship.rs/install.sh | sh curl -sS https://starship.rs/install.sh | sh
echo "Starship requires an NFont: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip" echo "Starship requires an NFont: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip"
@ -74,8 +76,8 @@ else
echo "already installed." echo "already installed."
fi fi
echo "JetBrains toolbox is " echo -n "JetBrains toolbox is "
if ! test -f $HOME/.config/JetBrains/; then if ! test -d $HOME/.config/JetBrains/; then
echo "not installed. Installing..." echo "not installed. Installing..."
ARCHIVE_URL="$(curl -s 'https://data.services.jetbrains.com/products/releases?code=TBA&latest=true&type=release' | grep -Po '"linux":.*?[^\\]",' | awk -F ':' '{print $3,":"$4}'| sed 's/[", ]//g')" ARCHIVE_URL="$(curl -s 'https://data.services.jetbrains.com/products/releases?code=TBA&latest=true&type=release' | grep -Po '"linux":.*?[^\\]",' | awk -F ':' '{print $3,":"$4}'| sed 's/[", ]//g')"
wget -q --show-progress -cO "/tmp/jetbrains-toolbox-latest.tar.gz" "$ARCHIVE_URL" wget -q --show-progress -cO "/tmp/jetbrains-toolbox-latest.tar.gz" "$ARCHIVE_URL"
@ -87,4 +89,6 @@ else
echo "already installed." echo "already installed."
fi fi
if ! command -v fzf &> /dev/null; then
echo "You may wish to install fzf for sofi and other search" echo "You may wish to install fzf for sofi and other search"
fi