From f1be33211eaa5b2f2a33cce4355c8302a4b237dd Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 10 Feb 2023 14:02:16 -0500 Subject: [PATCH] Update haos-vm-v5.sh `awk` is more efficient than using `tr` as it doesn't need to create a new process --- vm/haos-vm-v5.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/haos-vm-v5.sh b/vm/haos-vm-v5.sh index 22f2a45e..f721d285 100644 --- a/vm/haos-vm-v5.sh +++ b/vm/haos-vm-v5.sh @@ -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