diff --git a/pip-install.sh b/pip-install.sh index 96c5809..1d97ac2 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 "$1service/rest/v1/components?repository=$repository" \ + curl -X POST "$nexus_host/service/rest/v1/components?repository=$repository" \ -H "accept: application/json" \ -H "Content-Type: multipart/form-data" \ -F "pypi.asset=@$package" -i