From 7390ba5ca9c01bdb564a95066289cc94ad62ec3b Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Wed, 20 Mar 2019 03:38:57 +0200 Subject: [PATCH] package uploader: fix conditional when checking http status after publishing in upload_package() --- scripts/package_uploader.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package_uploader.sh b/scripts/package_uploader.sh index 2bb6f1b67..004ef5ba5 100755 --- a/scripts/package_uploader.sh +++ b/scripts/package_uploader.sh @@ -446,7 +446,7 @@ upload_package() { http_status_code=$(echo "$curl_response" | cut -d'|' -f2) api_response_message=$(echo "$curl_response" | cut -d'|' -f1 | jq -r .message) - if [ "$http_status_code" ]; then + if [ "$http_status_code" = "200" ]; then msg -e "\\r\\e[2K * ${1}: success" else msg "$api_response_message"