Update haos-vm-v5.sh

`awk` is more efficient than using `tr` as it doesn't need to create a new process
pull/1045/head
tteckster 2023-02-10 14:02:16 -05:00 committed by GitHub
parent 992182d74d
commit f1be33211e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ EOF
} }
header_info header_info
echo -e "\n Loading..." 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) NEXTID=$(pvesh get /cluster/nextid)
VERSIONS=( stable beta dev ) VERSIONS=( stable beta dev )
for version in "${VERSIONS[@]}"; do for version in "${VERSIONS[@]}"; do