From 48d31c99d573bcd3ffa5d3de8325714f31f15420 Mon Sep 17 00:00:00 2001 From: Rodolfo Date: Tue, 2 Jul 2024 16:44:26 +0800 Subject: [PATCH] Update to allow for choosing whether to download JetbrainsMono or not --- archsetup.sh | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/archsetup.sh b/archsetup.sh index d56fd3e..d1ae84e 100755 --- a/archsetup.sh +++ b/archsetup.sh @@ -1,6 +1,6 @@ #!/bin/bash -scripts_PATH=$1 +scripts_PATH=$1/arch-automated-installer username=$(whoami) home_PATH=/home/$username @@ -112,16 +112,27 @@ echo "========" echo "" # Get JetBrainsMono font -font_PATH="$home_PATH/.local/share/fonts" -if [[ ! -d $font_PATH ]]; then - mkdir $font_PATH -fi -mkdir $font_PATH/JetBrainsMono -cd $font_PATH/JetBrainsMono -wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz -cd $font_PATH/JetbrainsMono && tar -xvf JetBrainsMono.tar.xz -cd "" -echo "" +while true; do + read -p "Do you want to install JetBrainsMono Nerd Font?" answer + if [[ "${answer}" == "y" ]]; then + font_PATH="$home_PATH/.local/share/fonts" + if [[ ! -d $font_PATH ]]; then + mkdir $font_PATH + fi + mkdir $font_PATH/JetBrainsMono + cd $font_PATH/JetBrainsMono + wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz + cd $font_PATH/JetbrainsMono && tar -xvf JetBrainsMono.tar.xz + cd "" + echo "" + break + elif [[ "${answer}" == "n" ]]; then + echo "Skipping JetBrainsMono Nerd Font Install" + break + else + echo "Invalid Response (y/n)" + fi +done # Build pijulius's Picom