mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
postinst_intercept: allow to pass variables with spaces
* trying to pass foo="a b" through postinst_intercept ends with the actual script header to containing: b foo=a which fails because "b" command doesn't exist. (From OE-Core rev: c66d7d85b7225be8c838449324d506565dd0081d) (From OE-Core rev: 05af103b9b9141319644cde452afbe73e4c2d226) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2e6494e55a
commit
8897773fe4
@@ -48,7 +48,7 @@ if [ -n "$pkgs_line" ]; then
|
|||||||
sed -i -e "s/##PKGS:.*/\0${package_name} /" $intercept_script
|
sed -i -e "s/##PKGS:.*/\0${package_name} /" $intercept_script
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
for var in $@; do
|
for var in "$@"; do
|
||||||
sed -i -e "\%^#\!/bin/.*sh%a $var" $intercept_script
|
sed -i -e "\%^#\!/bin/.*sh%a $var" $intercept_script
|
||||||
done
|
done
|
||||||
echo "##PKGS: ${package_name} " >> $intercept_script
|
echo "##PKGS: ${package_name} " >> $intercept_script
|
||||||
|
|||||||
Reference in New Issue
Block a user