summaryrefslogtreecommitdiff
path: root/scripts/build-vagrant-libvirt-box
diff options
context:
space:
mode:
authorYuya Kusakabe <yuya.kusakabe@gmail.com>2018-05-15 16:52:17 +0900
committerYuya Kusakabe <yuya.kusakabe@gmail.com>2018-05-15 16:52:17 +0900
commitd9e596d0c6c4c78cb664ab527e7fbd58a68b2d96 (patch)
tree8f3424061557e57d8765dc95761a9e969d27e7b2 /scripts/build-vagrant-libvirt-box
parent31e9d449932078565e4b2f071f9036dc800ad9ec (diff)
downloadvyos-build-d9e596d0c6c4c78cb664ab527e7fbd58a68b2d96.tar.gz
vyos-build-d9e596d0c6c4c78cb664ab527e7fbd58a68b2d96.zip
More fix for version number for vagrant libvirt box
Diffstat (limited to 'scripts/build-vagrant-libvirt-box')
-rwxr-xr-xscripts/build-vagrant-libvirt-box6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build-vagrant-libvirt-box b/scripts/build-vagrant-libvirt-box
index 88aa9088..6db77c2a 100755
--- a/scripts/build-vagrant-libvirt-box
+++ b/scripts/build-vagrant-libvirt-box
@@ -54,9 +54,9 @@ fi
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 3-4 | rev)
-minor=$(cat build/version | cut -d'+' -f2 | rev | cut -c 1-2 | rev)
+major=$(cat build/version | cut -d'+' -f2 | cut -d'-' -f1 | rev | cut -c 5- | rev)
+sub=$(cat build/version | cut -d'+' -f2 | cut -d'-' -f1 | rev | cut -c 3-4 | rev)
+minor=$(cat build/version | cut -d'+' -f2 | cut -d'-' -f1 | 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}