From 885f5a9a2b020083a224fc06eb3841f25b100d9d Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 26 Sep 2023 19:18:57 -0400 Subject: [PATCH] Update build.func --- misc/build.func | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/misc/build.func b/misc/build.func index 79b5b5ad..c1e36895 100644 --- a/misc/build.func +++ b/misc/build.func @@ -54,13 +54,13 @@ msg_error() { # Run as root only check_root() { -if [[ "$(id -u)" -ne 0 || $(ps -o comm= -p $PPID) == "sudo" ]]; then - clear - msg_error "Please run this script as root." - echo -e "\nExiting..." - sleep 2 - exit -fi + if [[ "$(id -u)" -ne 0 || $(ps -o comm= -p $PPID) == "sudo" ]]; then + clear + msg_error "Please run this script as root." + echo -e "\nExiting..." + sleep 2 + exit + fi } # This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.