Skip to content

Commit

Permalink
Merge pull request #66 from loadsys/b/escape-bash-vars
Browse files Browse the repository at this point in the history
Use single quotes when printing db-credentials for shell consumption
  • Loading branch information
beporter committed Dec 4, 2015
2 parents 82f7ebc + 87e0387 commit 9bdf903
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions db-credentials
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ else {
//----------
function printDbConfig($db) {
echo <<<EOD
DB_HOST="{$db->default['host']}"
DB_DATABASE="{$db->default['database']}"
DB_LOGIN="{$db->default['login']}"
DB_PASSWORD="{$db->default['password']}"
DB_HOST='{$db->default['host']}'
DB_DATABASE='{$db->default['database']}'
DB_LOGIN='{$db->default['login']}'
DB_PASSWORD='{$db->default['password']}'
EOD;
}

Expand Down

0 comments on commit 9bdf903

Please sign in to comment.