From 1dcf445b23b8b34c121bf68f207fe970bcae3f9a Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 1 May 2024 20:02:20 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 11f6071..93ae008 100644 --- a/src/install.sh +++ b/src/install.sh @@ -317,7 +317,7 @@ downloadFile() { local msg="Downloading $desc..." domain=$(echo "$url" | awk -F/ '{print $3}') - dots=$(echo $domain | grep -o "." | wc -l) + dots=$(echo "$domain" | tr -cd '.' | wc -c) (( dots > 1 )) && domain=$(expr "$domain" : '.*\.\(.*\..*\)') if [ -n "$domain" ] && [[ "${domain,,}" != *"microsoft.com" ]]; then