Fix sed regex rule to replace (exactly) MACHINE with value from environment
authorOle Reinhardt <ole.reinhardt@kernelconcepts.de>
Mon, 15 Oct 2018 09:51:47 +0000 (11:51 +0200)
committerOle Reinhardt <ole.reinhardt@kernelconcepts.de>
Mon, 15 Oct 2018 09:51:47 +0000 (11:51 +0200)
setup-environment

index 672929c..59df53d 100755 (executable)
@@ -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