浏览代码

Update build.func

tteckster 1 年之前
父节点
当前提交
885f5a9a2b
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      misc/build.func

+ 7 - 7
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.