mirror of https://github.com/openwrt/docker.git
remove minor release from version
The OpenWrt branches only contains the major number Signed-off-by: Paul Spooren <mail@aparcar.org>pull/65/head
parent
c3b582b50e
commit
961306c0a0
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue