From 5457c7c47cf728fd0a1183898f68783ffdb2f42a Mon Sep 17 00:00:00 2001 From: Ayanokoji Date: Sun, 28 Apr 2024 12:14:51 +0600 Subject: [PATCH] Made the nerd font symbols input case insensitive --- setup.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index aefbb3b..278370b 100755 --- a/setup.sh +++ b/setup.sh @@ -10,18 +10,21 @@ echo "" read -p "Use nerd font symbols? (y/n): " symbolsYN echo "Installation..." +# Convert the input to lowercase +symbolsYN=$(echo "$symbolsYN" | tr '[:upper:]' '[:lower:]') + case $symbolsYN in - "y") + "y") wget $linkNerd chmod +x nitchNerd sudo mv nitchNerd /usr/local/bin/nitch - ;; + ;; - "n") + "n") wget $linkNoNerd chmod +x nitchNoNerd sudo mv nitchNoNerd /usr/local/bin/nitch - ;; + ;; esac echo ""