summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-29 05:42:46 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-29 05:42:46 +0300
commit2953f358edbfa6d339776f3c0d8794920869c675 (patch)
tree2aa12f3bf2e571aa1b04f2504fed3dd903b5e1d6
parent549760b83f41aafc710c59a701eca48702a55c59 (diff)
downloadspm-2953f358edbfa6d339776f3c0d8794920869c675.tar.gz
spm-2953f358edbfa6d339776f3c0d8794920869c675.tar.bz2
spm-2953f358edbfa6d339776f3c0d8794920869c675.tar.xz
spm-2953f358edbfa6d339776f3c0d8794920869c675.zip
Fix parameter escaping in generated env files.
-rw-r--r--scripts/include/common.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/include/common.sh b/scripts/include/common.sh
index 382f8a5..4fcb426 100644
--- a/scripts/include/common.sh
+++ b/scripts/include/common.sh
@@ -311,7 +311,7 @@ function common_use_package {
echo "" >>"${envfile}"
package_use
check_error $?
- echo "\$*" >>"${envfile}"
+ echo "\"\$@\"" >>"${envfile}"
check_error $?
chmod 0755 "${envfile}"
check_error $?
@@ -348,7 +348,7 @@ function common_use_packages {
check_error $?
done
unset IFS
- echo "\$*" >>"${envfile}"
+ echo "\"\$@\"" >>"${envfile}"
check_error $?
chmod 0755 "${envfile}"
check_error $?