Selaa lähdekoodia

Update 'localchecks/edir-version.sh'

Michael Honkoop 3 päivää sitten
vanhempi
sitoutus
161ee42e05
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  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