소스 검색

fix shell script

Ralf S. Engelschall 10 년 전
부모
커밋
bab3082d9b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      gogs/gogs.spec

+ 1 - 1
gogs/gogs.spec

@@ -153,7 +153,7 @@ PreReq:       git
             echo "you should configure it by visiting:"
             echo "    http://localhost:3000/"
         ) | %{l_rpmtool} msg -b -t notice
-    elif [ $1 -eq 2 ] || exit 0
+    elif [ $1 -eq 2 ]; then
         eval `%{l_rc} gogs status 2>/dev/null`
         [ ".$gogs_active" = .yes ] && %{l_rc} gogs restart
     fi