summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2015-09-04 14:22:27 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-18 19:22:26 +0100
commitbb931159ea12556fe633b029803f6f35d62866a0 (patch)
tree21f4e25138c399ac93abda6411cdf0e964b4a586 /scripts
parent346188f17636f321e07e37399536d04a124a0409 (diff)
downloadast2050-yocto-poky-bb931159ea12556fe633b029803f6f35d62866a0.zip
ast2050-yocto-poky-bb931159ea12556fe633b029803f6f35d62866a0.tar.gz
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 master rev: c66d7d85b7225be8c838449324d506565dd0081d) (From OE-Core rev: e1cb77476934ea0f80993df049c3708bfa33dba3) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/postinst-intercepts/postinst_intercept2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/postinst-intercepts/postinst_intercept b/scripts/postinst-intercepts/postinst_intercept
index a257198..b18e806 100755
--- a/scripts/postinst-intercepts/postinst_intercept
+++ b/scripts/postinst-intercepts/postinst_intercept
@@ -48,7 +48,7 @@ if [ -n "$pkgs_line" ]; then
sed -i -e "s/##PKGS:.*/\0${package_name} /" $intercept_script
fi
else
- for var in $@; do
+ for var in "$@"; do
sed -i -e "\%^#\!/bin/.*sh%a $var" $intercept_script
done
echo "##PKGS: ${package_name} " >> $intercept_script
OpenPOWER on IntegriCloud