Browse Source

package uploader: fix conditional when checking http status after publishing in upload_package()

emacs-27
Leonid Plyushch 6 years ago
parent
commit
7390ba5ca9
  1. 2
      scripts/package_uploader.sh

2
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"

Loading…
Cancel
Save