summaryrefslogtreecommitdiff
path: root/files/openwrt-hash.patch
blob: 35a06c444db5da2a1ed2cb905381ac52505c3f82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/compile_pkgs b/compile_pkgs
index 3a04a5c..30d1ce7 100755
--- a/compile_pkgs
+++ b/compile_pkgs
@@ -62,7 +62,7 @@ openwrt_feed() {
 	# OpenWRT git repository URL
 	OPENWRT_URL="$(sed -n 's/# openwrt \([^;^]\+\).*/\1/p' "$src_dir/feeds.conf")"
 	# Git reference used to checkout OpenWRT repository
-	OPENWRT_BRANCH="$(sed -n 's/# openwrt [^;^]\+[;^]\([^\s]\+\).*/\1/p' "$src_dir/feeds.conf")"
+	OPENWRT_BRANCH="$(sed -n 's/# openwrt [^;^]\+[;^]\([^[:blank:]]\+\).*/\1/p' "$src_dir/feeds.conf")"
 	# Check if ^ is used to separate URL and branch and in such case it is hash not branch
 	grep -E '^# openwrt [^;^]+\^.+' "$src_dir/feeds.conf" && OPENWRT_BRANCH="#$OPENWRT_BRANCH"
 	[ -n "$OPENWRT_BRANCH" ] || OPENWRT_BRANCH="master"