diff --git a/misc/build.func b/misc/build.func index 1ec46a2f6..eb2183872 100644 --- a/misc/build.func +++ b/misc/build.func @@ -28,11 +28,10 @@ variables() { METHOD="default" # sets the METHOD variable to "default", used for the API call. RANDOM_UUID="$(cat /proc/sys/kernel/random/uuid)" # generates a random UUID and sets it to the RANDOM_UUID variable. CTTYPE="${CTTYPE:-${CT_TYPE:-1}}" - #CT_TYPE=${var_unprivileged:-$CT_TYPE} # Get Proxmox VE version and kernel version if command -v pveversion >/dev/null 2>&1; then - PVEVERSION=$(pveversion | grep "pve-manager" | awk '{print $2}' | cut -d'/' -f1) + PVEVERSION="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')" else PVEVERSION="N/A" fi