need to add '/' end of nexus_host

This commit is contained in:
2022-08-03 22:28:33 +03:00
parent d6d97ebc33
commit 0f0366341d

View File

@@ -8,7 +8,7 @@ print_help() {
echo -e "For UPLOAD"
echo -e "$0 <nexus_host> <repository>"
echo -e "Like this:"
echo -e "<nexus_host>/service/rest/v1/components?repository=<repository>"
echo -e "<nexus_host>service/rest/v1/components?repository=<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