浏览代码

Added more comments to clarify the code

Michael Honkoop 1 周之前
父节点
当前提交
2633c113eb
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      localchecks/directadmin.sh

+ 3 - 2
localchecks/directadmin.sh

@@ -40,9 +40,9 @@ fi
 
 # store version information from DirectAdmin packages
 DirectAdmin_Versions_Update=$($DirAdmin_Path/build versions)
-#Define updates Array
+# Define updates Array
 updates=()
-# iterate over the collected data to find possible updates
+# Iterate over the collected data to find possible updates
 while read -r line; do
     if [[ $line =~ ^Latest\ version\ of\ (.+):\ (.+)$ ]]; then
         component="${BASH_REMATCH[1]}"
@@ -57,6 +57,7 @@ while read -r line; do
     fi
 done <<< "$DirectAdmin_Versions_Update"
 
+# Report findings back to CheckMK
 if [[ ${#updates[@]} -eq 0 ]]; then
     echo "0 \"DirectAdmin\" - All DirectAdmin Versions are up to date"
 else