fix: Generate UUID

This commit is contained in:
Kroese 2024-11-14 22:07:07 +01:00 committed by GitHub
parent ddff7a3f92
commit 82131cdc49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,7 @@ generateID() {
[ -s "$file" ] && UUID=$(<"$file")
[ -n "$UUID" ] && return 0
UUID=$(cat /proc/sys/kernel/random/uuid)
UUID=$(cat /proc/sys/kernel/random/uuid 2> /dev/null || uuidgen --random)
echo "${UUID^^}" > "$file"
return 0