瀏覽代碼

Update lint-up-wrapper.sh

fixed wrong lint-up
Tobias Kaminsky 7 年之前
父節點
當前提交
9b687019f2
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      scripts/lint/lint-up-wrapper.sh

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

@@ -8,9 +8,14 @@
 #6: DRONE_BUILD_NUMBER
 
 ruby scripts/lint/lint-up.rb $1 $2 $3
-
 returnValue=$?
-if [ $3 = "master" ]; then
+
+# exit codes:
+# 0: count was reduced
+# 1: count was increased
+# 2: count stayed the same
+
+if [ $3 = "master" -a $returnValue -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