need to add '/' end of nexus_host
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user