remove minor release from version

The OpenWrt branches only contains the major number

Signed-off-by: Paul Spooren <mail@aparcar.org>
pull/65/head
Paul Spooren 2020-09-10 22:01:09 -10:00
parent c3b582b50e
commit 961306c0a0
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
#!/bin/sh
#!/bin/bash
if [ "$VERSION" = "snapshot" ]; then
export BRANCH="master"
else
export BRANCH="openwrt-$VERSION"
export BRANCH="openwrt-${VERSION%.*}"
fi
git clone --depth 1 --branch "$BRANCH" https://github.com/openwrt/openwrt.git