fix sed invocation
PATCH 1/1 fix sed invocation
"sed -ie" is different than "sed -i -e". Although both run the script on the intended file in-place, the first one creates a backup. These two were accidentally merged into one option which can sometimes work, but not in this case.
--- .../rk-rauc-demo/recipes-core/rauc/rauc-conf.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
dynamic-layers/rk-rauc-demo/recipes-core/rauc/rauc-conf.bbappend +1 -1
@@ -5,5 +5,5 @@ PACKAGE_ARCH:rk-rauc-demo = "${MACHINE_ARCH}" FILESEXTRAPATHS:prepend:rk-rauc-demo := "${THISDIR}/files:" do_install:prepend:rk-rauc-demo() { - sed -ie 's!@MACHINE@!${MACHINE}!g' ${UNPACKDIR}/system.conf + sed -i -e 's!@MACHINE@!${MACHINE}!g' ${UNPACKDIR}/system.conf }
Signature · 1 line
2.51.0.193.g4975ec3473b4
Hi Trevor,
Quoted 1 line · Trevor Woerner via lists.yoctoproject.org
"sed -ie" is different than "sed -i -e". Although both run the script on
Nice catch!
Quoted 4 lines
the intended file in-place, the first one creates a backup. These two were accidentally merged into one option which can sometimes work, but not in this case.
Thanks!
Quentin
Trevor Woerner
AppliedQuoted 9 lines · Trevor Woerner
"sed -ie" is different than "sed -i -e". Although both run the script on the intended file in-place, the first one creates a backup. These two were accidentally merged into one option which can sometimes work, but not in this case.
Signed-off-by Trevor Woerner <[email protected]>--- .../rk-rauc-demo/recipes-core/rauc/rauc-conf.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to meta-rockchip, master branch.