crank-demos: fix failing sed command

The WESTON_SERVICE variable may contain the '@' character. In that case
the sed command fails due to using the same character as separator. To
prevent this problem use a different separator for the sed command.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2023-01-10 12:01:53 +01:00
parent 19d940965d
commit c2c527cf8d
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ do_install () {
# Install systemd unit files
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/crank-demo.service ${D}${systemd_unitdir}/system/
sed -i -e "s@##WESTON_SERVICE##@${WESTON_SERVICE}@g" \
sed -i -e "s,##WESTON_SERVICE##,${WESTON_SERVICE},g" \
"${D}${systemd_unitdir}/system/crank-demo.service"
fi