From 26505cf7a809d1b51acac9c5aaf24db7a7ab9644 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Tue, 13 Jun 2017 08:02:35 +0200 Subject: [PATCH] use correct exit code --- scripts/lint/lint-up-wrapper.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/lint/lint-up-wrapper.sh b/scripts/lint/lint-up-wrapper.sh index 16bba8ac7a..1b16f480dd 100755 --- a/scripts/lint/lint-up-wrapper.sh +++ b/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