From 58c1d281a07623580e73563f77cf3cba51057ff1 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 14 Apr 2022 16:39:57 -0400 Subject: [PATCH] Update debian-v3.sh --- ct/debian-v3.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ct/debian-v3.sh b/ct/debian-v3.sh index d310ecd2..39d35dd4 100644 --- a/ct/debian-v3.sh +++ b/ct/debian-v3.sh @@ -10,7 +10,7 @@ GN=`echo "\033[32m"` CL=`echo "\033[m"` APP="Debian" NSAPP=$(echo ${APP,,} | tr -d ' ') - +PVE=$(pveversion | grep "pve-manager/7" | wc -l) while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in @@ -33,9 +33,9 @@ ${CL}" header_info -function pve_7() { -if [ `pveversion | grep "pve-manager/7" | wc -l` -ne 1 ]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater" +function PVE_CHECK() { +if [[ $PVE != 1 ]]; then + echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" echo -e "Exiting..." sleep 2 exit