Skip to content

Commit 9bdf903

Browse files
committed
Merge pull request #66 from loadsys/b/escape-bash-vars
Use single quotes when printing db-credentials for shell consumption
2 parents 82f7ebc + 87e0387 commit 9bdf903

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

db-credentials

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ else {
4646
//----------
4747
function printDbConfig($db) {
4848
echo <<<EOD
49-
DB_HOST="{$db->default['host']}"
50-
DB_DATABASE="{$db->default['database']}"
51-
DB_LOGIN="{$db->default['login']}"
52-
DB_PASSWORD="{$db->default['password']}"
49+
DB_HOST='{$db->default['host']}'
50+
DB_DATABASE='{$db->default['database']}'
51+
DB_LOGIN='{$db->default['login']}'
52+
DB_PASSWORD='{$db->default['password']}'
5353
EOD;
5454
}
5555

0 commit comments

Comments
 (0)