From e1d7971965e0f36d210530ccb43da29110b3a40a Mon Sep 17 00:00:00 2001 From: Ole Reinhardt Date: Mon, 15 Oct 2018 11:51:47 +0200 Subject: [PATCH] Fix sed regex rule to replace (exactly) MACHINE with value from environment --- setup-environment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-environment b/setup-environment index 672929c..59df53d 100755 --- a/setup-environment +++ b/setup-environment @@ -163,7 +163,7 @@ if [ "$build_dir_setup_enabled" = "true" ]; then DL_DIR ?= "\${BSPDIR}/downloads/" EOF # Change settings according environment - sed -e "s,MACHINE ?=.*,MACHINE ?= '$MACHINE',g" \ + sed -e "s,^ *MACHINE ?=.*,MACHINE ?= '$MACHINE',g" \ -e "s,DISTRO ?=.*,DISTRO ?= '$DISTRO',g" \ -i conf/local.conf -- 2.39.5