mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 10:42:53 +02:00
Update haos-vm-v5.sh
`awk` is more efficient than using `tr` as it doesn't need to create a new process
This commit is contained in:
parent
992182d74d
commit
f1be33211e
@ -18,7 +18,7 @@ EOF
|
||||
}
|
||||
header_info
|
||||
echo -e "\n Loading..."
|
||||
GEN_MAC=02:$(openssl rand -hex 5 | sed 's/\(..\)/\1:/g; s/.$//' | tr '[:lower:]' '[:upper:]')
|
||||
GEN_MAC=02:$(openssl rand -hex 5 | awk '{print toupper($0)}' | sed 's/\(..\)/\1:/g; s/.$//')
|
||||
NEXTID=$(pvesh get /cluster/nextid)
|
||||
VERSIONS=( stable beta dev )
|
||||
for version in "${VERSIONS[@]}"; do
|
||||
|
Loading…
Reference in New Issue
Block a user