소스 검색

Make OSX init script check for missing argument in a way that works

svn:r4433
Nick Mathewson 20 년 전
부모
커밋
e8331f9d7d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      contrib/osx/Tor

+ 1 - 1
contrib/osx/Tor

@@ -56,7 +56,7 @@ StopService ()
 
 RestartService () { StopService; StartService; }
 
-if [ "x$1" = x ]; then
+if [ "$#" = 0 ]; then
   echo "Syntax: tor {start|stop}"
   exit 1
 fi