aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-02-17 20:22:24 -0500
committerjim-p <jimp@pfsense.org>2013-02-17 20:22:24 -0500
commit52795d868e16484fb49f31f492a202f143129494 (patch)
treed88cbbaf5f765da70ed381dbe61debf9a90cfbb4 /config
parente47bad0a21b535791fbd626d67d2611ebb601e8a (diff)
downloadpfsense-packages-52795d868e16484fb49f31f492a202f143129494.tar.gz
pfsense-packages-52795d868e16484fb49f31f492a202f143129494.tar.bz2
pfsense-packages-52795d868e16484fb49f31f492a202f143129494.zip
Fix whitespace test
Diffstat (limited to 'config')
-rw-r--r--config/systempatches/patches.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/systempatches/patches.inc b/config/systempatches/patches.inc
index d17e3614..89610565 100644
--- a/config/systempatches/patches.inc
+++ b/config/systempatches/patches.inc
@@ -41,7 +41,7 @@ function patch_commit($patch, $action, $test=false, $fulldetail=false) {
$check = ($test) ? "--check" : "";
$force = ($action == "revert") ? "-f" : "-t";
$direction = ($action == "revert") ? "--reverse" : "--forward";
- $whitespace = $patch['ignorewhitespace'] ? "--ignore-whitespace" : "";
+ $whitespace = isset($patch['ignorewhitespace']) ? "--ignore-whitespace" : "";
$pathstrip = '-p' . $patch['pathstrip'];
$full_patch_command = "{$patch_cmd} --directory={$directory} {$force} {$pathstrip} {$filename} {$check} {$direction} {$whitespace}";
patch_write($patch);