Преглед изворни кода

Command-line use is easier

Zachary Kotlarek пре 14 година
родитељ
комит
f0cc86f2a4
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      plexMonitor.sh

+ 2 - 2
plexMonitor.sh

@@ -30,8 +30,8 @@ fi
 
 # Allow use in daemon mode
 LOOP_DELAY=0
-if [ -n "${DAEMON}" ] && [ $DAEMON -gt 0 ]; then
-	LOOP_DELAY=$DAEMON
+if [ -n "${1}" ] && [ "${1}" -gt 0 ]; then
+	LOOP_DELAY=$1
 fi
 
 # Determine who we are