File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,16 @@ cred=$(echo $cred | tr -d ' ')
1111name=` awk ' /^Name: .*$/ {print $2}' solnlib.egg-info/PKG-INFO`
1212version=` awk ' /^__version__.*$/ {print $3}' solnlib/__init__.py | tr -d " \'" `
1313new_version=` echo $version | sed -e ' s/-dev./.dev/g' `
14- if [[ ! -z " $new_version " ]]
14+ if [[ ! -z " $version_postfix " ]]
1515then
1616 new_version=" ${new_version} -${version_postfix} "
1717fi
1818sed -i s/" ${version} " /" ${new_version} " /g solnlib/__init__.py
1919
20- uri=$( curl -Ssu $cred -GET https://repo.splunk.com/artifactory/api/storage/pypi/$name /$version /$name -$version .tar.gz | node -pe " JSON.parse(require('fs').readFileSync('/dev/stdin').toString()).uri" )
20+ uri=$( curl -Ssu $cred -GET https://repo.splunk.com/artifactory/api/storage/pypi/$name /$new_version /$name -$new_version .tar.gz | node -pe " JSON.parse(require('fs').readFileSync('/dev/stdin').toString()).uri" )
2121if [[ $uri == " undefined" ]]
2222then
2323 echo {\" exists\" : false, \" version\" :\" ${new_version} \" } > upload_check.json
2424else
2525 echo {\" exists\" : true, \" version\" :\" ${new_version} \" } > upload_check.json
26- fi
26+ fi
You can’t perform that action at this time.
0 commit comments