소스 검색

use correct exit code

tobiasKaminsky 7 년 전
부모
커밋
26505cf7a8
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      scripts/lint/lint-up-wrapper.sh

+ 2 - 0
scripts/lint/lint-up-wrapper.sh

@@ -12,7 +12,9 @@ ruby scripts/lint/lint-up.rb $1 $2 $3
 if [ $? -eq 0 ]; then
     echo "New master at: https://nextcloud.kaminsky.me/index.php/s/tXwtChzyqMj6I8v"
     curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/droneLogs/master.html --upload-file build/reports/lint/lint.html
+    exit 0
 else
     echo "New results at https://nextcloud.kaminsky.me/index.php/s/tXwtChzyqMj6I8v ->" $6.html
     curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/droneLogs/$6.html --upload-file build/reports/lint/lint.html
+    exit 1
 fi