git-hacks

git-hacks Commit Details

Date:2013-05-13 21:03:15 (4 years 11 months ago)
Author:Nicola Fontana
Branch:master
Commit:40a9d8525d35f81b51e38b3ed40c958e6cc5a8cb
Parents: d0eea512f7773c52fd1414418bc961a5f1a803dd
Message:gitdeploy: quoting value extraction with PHP

Changes:
Mgitdeploy (1 diff)

File differences

gitdeploy
7878
7979
8080
81
82
81
82
83
84
8385
8486
8587
require_once('cache/Cache.php');
SS_Cache::add_backend('default', 'black_hole');
require_once('core/Core.php');
foreach (\$databaseConfig as \$k => \$v)
echo \$k, '=', \$v, \"\n\";"
foreach (\$databaseConfig as \$k => \$v) {
\$v = addcslashes(\$v, '\\\'');
echo \"\$k='\$v\'\n\";
}"
for cfg in "$path"/*/_config.php; do
code=$(php -r "$php" 2>/dev/null)

Archive Download the corresponding diff file

Branches