Fix detection of lede branch.
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 15 Jul 2018 19:00:17 +0000 (21:00 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 15 Jul 2018 19:24:54 +0000 (21:24 +0200)
The branch name looks like this for lede-17.01:
refs/heads/lede-17.01

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
maketag.sh

index 89b2736bd36e6d633b583051a7513127a3fbd81c..72767b8bc63b629a81d6b89335775157c2de2972 100755 (executable)
@@ -99,8 +99,8 @@ case "$branch" in
 esac
 
 case "$branch" in
-       lede-*) distro="LEDE" ;;
-       openwrt-*) distro="OpenWrt" ;;
+       */lede-*) distro="LEDE" ;;
+       */openwrt-*) distro="OpenWrt" ;;
 esac
 
 export GIT_AUTHOR_NAME="$git_author"