summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-07-14 00:21:34 +0200
committerHolger Levsen <holger@layer-acht.org>2016-07-14 00:47:43 +0200
commitb2ed78ffe4e63fb50e7b801e2ccd470ee0adf091 (patch)
treef28b9eb1e2e2de036065ff7d3b287733fcb46fa8 /bin
parent689c64d7d1017f88fa4dad8a593b8c4bbc03994b (diff)
downloadjenkins.debian.net-b2ed78ffe4e63fb50e7b801e2ccd470ee0adf091.tar.xz
reproducible openwrt: common: fix type detection by adding a $ to variable test
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rw-r--r--bin/reproducible_openwrt_common.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/reproducible_openwrt_common.sh b/bin/reproducible_openwrt_common.sh
index 210d6de9..745a601c 100644
--- a/bin/reproducible_openwrt_common.sh
+++ b/bin/reproducible_openwrt_common.sh
@@ -153,8 +153,8 @@ build_two_times() {
cat $(find build_dir/ -name banner | grep etc/banner|head -1) > $BANNER_HTML
# save results in b1
- [ TYPE = "lede" ] && save_lede_results b1
- [ TYPE = "openwrt" ] && save_openwrt_results b1
+ [ "$TYPE" = "lede" ] && save_lede_results b1
+ [ "$TYPE" = "openwrt" ] && save_openwrt_results b1
# copy logs
save_openwrt_logs b1
@@ -175,8 +175,8 @@ build_two_times() {
openwrt_build "second" "$TARGET"
# save results in b2
- [ TYPE = "lede" ] && save_lede_results b2
- [ TYPE = "openwrt" ] && save_openwrt_results b2
+ [ "$TYPE" = "lede" ] && save_lede_results b2
+ [ "$TYPE" = "openwrt" ] && save_openwrt_results b2
# copy logs
save_openwrt_logs b2