From 0f0366341d8a31886f63bcb012e5f28b1a7d7655 Mon Sep 17 00:00:00 2001 From: Idan Cohen Date: Wed, 3 Aug 2022 22:28:33 +0300 Subject: [PATCH] need to add '/' end of nexus_host --- pip-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pip-install.sh b/pip-install.sh index 1d97ac2..96c5809 100755 --- a/pip-install.sh +++ b/pip-install.sh @@ -8,7 +8,7 @@ print_help() { echo -e "For UPLOAD" echo -e "$0 " echo -e "Like this:" - echo -e "/service/rest/v1/components?repository=" + echo -e "service/rest/v1/components?repository=" echo -e } @@ -26,7 +26,7 @@ upload_package() { local nexus_host=$1 local repository=$2 local package=$3 - curl -X POST "$nexus_host/service/rest/v1/components?repository=$repository" \ + curl -X POST "$1service/rest/v1/components?repository=$repository" \ -H "accept: application/json" \ -H "Content-Type: multipart/form-data" \ -F "pypi.asset=@$package" -i