fix(darwin): just use uuidgen to create session_id

This commit is contained in:
Martin Wimpress 2024-05-15 02:11:55 +01:00
parent f92749f8cd
commit 8075e2302a
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -3145,8 +3145,7 @@ function download_windows_workstation() {
esac
local user_agent="Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
# uuidgen: For MacOS (installed by default) and other systems (e.g. with no /proc) that don't have a kernel interface for generating random UUIDs
session_id="$(cat /proc/sys/kernel/random/uuid 2> /dev/null || uuidgen --random)"
session_id="$(uuidgen)"
# Get product edition ID for latest release of given Windows version
# Product edition ID: This specifies both the Windows release (e.g. 22H2) and edition ("multi-edition" is default, either Home/Pro/Edu/etc., we select "Pro" in the answer files) in one number