From b2ed78ffe4e63fb50e7b801e2ccd470ee0adf091 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Thu, 14 Jul 2016 00:21:34 +0200 Subject: reproducible openwrt: common: fix type detection by adding a $ to variable test Signed-off-by: Holger Levsen --- bin/reproducible_openwrt_common.sh | 8 ++++---- 1 file 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 -- cgit v1.2.3-70-g09d2