소스 검색

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