patch command
Posted: Fri May 29, 2009 12:52 pm
I've got a patch problem I can't figure out. I've created a diff file that works from the command line.
But when I include the patch command inside a script it fails in three places. My guess is some weird spacing issue but I'm stumped as to how to correct it. This is the patch part of the script.
Code: Select all
patch -i my.diff config.inc.php
Code: Select all
--- config.inc.php 2009-05-29 01:01:39.000000000 -0400
+++ config.inc.php.new 2009-05-29 10:30:31.000000000 -0400
@@ -26,7 +26,7 @@
*
* @var global constant
*/
- define("DB_USERNAME", "root");
+ define("DB_USERNAME", "badgerbank");
/**
* Database password
@@ -34,7 +34,7 @@
* @var global constant
*/
- define("DB_PASSWORD", "");
+ define("DB_PASSWORD", "badgerbank");
/**
* Database host address
@@ -69,4 +69,4 @@
// Report ALL Errors
error_reporting(E_ALL);
-?>
+?>