Adjust regex to be GNU and BSD sed compatible
@@ -21,7 +21,7 @@ set -eu
# What OS is used
OS="$(uname | tr '[:upper:]' '[:lower:]')"
# Find out what's the latest version
-VERSION="$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/kubermatic/kubeone/releases | sed -n 's/^\s*"tag_name": "v\([^"]*\)",$/\1/p' | sort -V | tail -1)"
+VERSION="$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/kubermatic/kubeone/releases | sed -n -E 's/^[[:space:]]*"tag_name": "v([^"]*)",$/\1/p' | sort -V | tail -1)"
# Download URL for the latest version
URL="https://github.com/kubermatic/kubeone/releases/download/v${VERSION}/kubeone_${VERSION}_${OS}_amd64.zip"
