瀏覽代碼

Update 'localchecks/edir-version.sh'

Michael Honkoop 3 天之前
父節點
當前提交
161ee42e05
共有 1 個文件被更改,包括 2 次插入 和 3 次删除
  1. 2 3
      localchecks/edir-version.sh

+ 2 - 3
localchecks/edir-version.sh

@@ -14,9 +14,8 @@
 
 # License: GNU General Public License v2
 
-/usr/bin/which ndsd >/dev/null 2>&1
-if [ $? -ne 0 ]; then
-    exit;
+if ! command -v ndsd >/dev/null 2>&1; then
+    exit 0;
 fi
 
 # Execute command to retrieve information