summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-11-03 03:05:03 +0100
committerHolger Levsen <holger@layer-acht.org>2017-11-03 03:14:16 +0100
commit65d29c4ea76338359822ab575b29b5332730d685 (patch)
tree7cf2dc6eb29d05c214665ac22b92e735a71cc0f8
parenta823b2c6f60b617518776a1dd9f17930361328a1 (diff)
downloadjenkins.debian.net-65d29c4ea76338359822ab575b29b5332730d685.tar.xz
reproducible_lede: add newline to $CONFIG
The missing newline makes the first line of the static config invalid. In particular CONFIG_ALL=y got invalidated. Additional check for empty lines and remove them. Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rw-r--r--bin/reproducible_lede_common.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_lede_common.sh b/bin/reproducible_lede_common.sh
index 88ce45a7..e71494cf 100644
--- a/bin/reproducible_lede_common.sh
+++ b/bin/reproducible_lede_common.sh
@@ -230,7 +230,7 @@ openwrt_apply_variations() {
openwrt_config() {
CONFIG=$1
- printf "$CONFIG" > .config
+ printf "$CONFIG\n" | grep '^[^ ]' > .config
printf "CONFIG_ALL=y\n" >> .config
printf "CONFIG_AUTOREMOVE=y\n" >> .config
printf "CONFIG_CLEAN_IPKG=y\n" >> .config