diff options
author | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2018-05-01 16:24:03 +0900 |
---|---|---|
committer | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2018-05-01 16:24:03 +0900 |
commit | bc454be832aef40c58180b2175e2cd573a98daf1 (patch) | |
tree | fceb79c8a5c89389d3b40ad5ef3f5b1f14b0de62 /scripts/build-vagrant-libvirt-box | |
parent | 40ff4c4fcfdf2d7961eb73bc0414bceef7f17ded (diff) | |
download | vyos-build-bc454be832aef40c58180b2175e2cd573a98daf1.tar.gz vyos-build-bc454be832aef40c58180b2175e2cd573a98daf1.zip |
Fix bad URI of vagrant box URL
Diffstat (limited to 'scripts/build-vagrant-libvirt-box')
-rwxr-xr-x | scripts/build-vagrant-libvirt-box | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build-vagrant-libvirt-box b/scripts/build-vagrant-libvirt-box index 95ea9d4b..070b3ef7 100755 --- a/scripts/build-vagrant-libvirt-box +++ b/scripts/build-vagrant-libvirt-box @@ -61,7 +61,8 @@ curl -XPOST -d "version[version]=${version}" \ echo # Create provider -curl -XPOST -d "provider[name]=${PROVIDER}" -d "provider[url]=${VAGRANT_BOX_BASE_URL}/vyos-${VERSION}-vagrant-${PROVIDER}.box" \ +urlencoded_version=$(cat build/version | sed 's/+/%2B/') +curl -XPOST -d "provider[name]=${PROVIDER}" -d "provider[url]=${VAGRANT_BOX_BASE_URL}/vyos-${urlencoded_version}-vagrant-${PROVIDER}.box" \ https://app.vagrantup.com/api/v1/box/${VAGRANT_BOX_NAME}/version/${version}/providers?access_token=${VAGRANT_CLOUD_ACCESS_TOKEN} echo |