Skip to content

Commit

Permalink
Merge pull request #18 from gruntwork-io/fix-quotes
Browse files Browse the repository at this point in the history
Fix issue with quotes around module params.
  • Loading branch information
josh-padnick authored Nov 14, 2017
2 parents 56a1eb4 + 499e955 commit ecd67b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gruntwork-install
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function convert_module_params_format {
local readonly key_value_pair="$1"
local readonly key="${key_value_pair%%=*}"
local readonly val="${key_value_pair#*=}"
echo "--${key} '${val}'"
echo "--${key} \"${val}\""
}

function run_module {
Expand All @@ -188,7 +188,7 @@ function run_module {
local readonly module_params=($@)
local readonly install_script_path="${download_dir}/${module_name}/${MODULE_INSTALL_FILE_NAME}"

echo "Executing $install_script_path"
echo "Executing $install_script_path ${module_params[@]}"
chmod u+x "$install_script_path"
eval "$install_script_path ${module_params[@]}"
}
Expand Down

0 comments on commit ecd67b9

Please sign in to comment.