sonatype-nexus-community / helm-nexus-push

A plugin for helm that will push a chart to a Nexus Hosted Repository
Apache License 2.0
43 stars 47 forks source link

the script remove space in folder name #22

Open survivant opened 2 years ago

survivant commented 2 years ago

I try to send a chart to nexus repository but I have space in my folder name but there are removed. The last part of the script remove them with the tr -d '[:space:]'

Successfully packaged chart and saved it to: /home/xxx/workspace/Pipelines/Interface - cicd/Kubernetes API - cicd/kubernetes-api/chart/kubernetes-api-0.0.14-feature-iep-773.tgz
xxx@lnx-testdockerruntime:~/workspace/Pipelines/Interface - cicd/Kubernetes API - cicd/kubernetes-api/chart$ helm package . | cut -d":" -f2
 /home/xxx/workspace/Pipelines/Interface - cicd/Kubernetes API - cicd/kubernetes-api/chart/kubernetes-api-0.0.14-feature-iep-773.tgz
xxx@lnx-testdockerruntime:~/workspace/Pipelines/Interface - cicd/Kubernetes API - cicd/kubernetes-api/chart$ helm package . | cut -d":" -f2 | tr -d ' '
/home/xxx/workspace/Pipelines/Interface-cicd/KubernetesAPI-cicd/kubernetes-api/chart/kubernetes-api-0.0.14-feature-iep-773.tgz
xxx@lnx-testdockerruntime:~/workspace/Pipelines/Interface - cicd/Kubernetes API - cicd/kubernetes-api/chart$

here the ouput of the command (see the spaces are removed in the path):

curl: Can't open '/home/xxx/workspace/Pipelines/Interface-cicd/KubernetesAPI-cicd/kubernetes-api/chart/kubernetes-api-0.0.14-feature-iep-773.tgz'!