Update install.sh

This commit is contained in:
Kroese 2024-05-01 20:02:20 +02:00 committed by GitHub
parent 40aa11e6a6
commit 1dcf445b23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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