mirror of
https://github.com/dockur/macos.git
synced 2026-03-11 08:34:24 +00:00
fix: Generate UUID
This commit is contained in:
parent
ddff7a3f92
commit
82131cdc49
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue