diff options
author | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2018-05-15 15:58:45 +0900 |
---|---|---|
committer | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2018-05-15 15:58:45 +0900 |
commit | 31e9d449932078565e4b2f071f9036dc800ad9ec (patch) | |
tree | 8ed984bc5fbe2a88fb048993041932f46ea5e495 /scripts/build-vagrant-libvirt-box | |
parent | 0b1c3737dd1425ee8e9d7af7385110ec2551e437 (diff) | |
download | vyos-build-31e9d449932078565e4b2f071f9036dc800ad9ec.tar.gz vyos-build-31e9d449932078565e4b2f071f9036dc800ad9ec.zip |
Fix Version is too large error when creating version to vagrant cloud
Diffstat (limited to 'scripts/build-vagrant-libvirt-box')
-rwxr-xr-x | scripts/build-vagrant-libvirt-box | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build-vagrant-libvirt-box b/scripts/build-vagrant-libvirt-box index 4d3482d..88aa908 100755 --- a/scripts/build-vagrant-libvirt-box +++ b/scripts/build-vagrant-libvirt-box @@ -55,8 +55,9 @@ PROVIDER=libvirt # Create version major=$(cat build/version | cut -d'+' -f2 | rev | cut -c 5- | rev) -sub=$(cat build/version | cut -d'+' -f2 | rev | cut -c 1-4 | rev) -version=$(echo "$major.$sub.0") +sub=$(cat build/version | cut -d'+' -f2 | rev | cut -c 3-4 | rev) +minor=$(cat build/version | cut -d'+' -f2 | rev | cut -c 1-2 | rev) +version=$(echo "$major.$sub.$minor") curl -XPOST -d "version[version]=${version}" \ https://app.vagrantup.com/api/v1/box/${VAGRANT_BOX_NAME}/versions?access_token=${VAGRANT_CLOUD_ACCESS_TOKEN} echo |