diff options
author | jim-p <jimp@pfsense.org> | 2013-02-17 20:22:24 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-02-17 20:22:24 -0500 |
commit | 52795d868e16484fb49f31f492a202f143129494 (patch) | |
tree | d88cbbaf5f765da70ed381dbe61debf9a90cfbb4 | |
parent | e47bad0a21b535791fbd626d67d2611ebb601e8a (diff) | |
download | pfsense-packages-52795d868e16484fb49f31f492a202f143129494.tar.gz pfsense-packages-52795d868e16484fb49f31f492a202f143129494.tar.bz2 pfsense-packages-52795d868e16484fb49f31f492a202f143129494.zip |
Fix whitespace test
-rw-r--r-- | config/systempatches/patches.inc | 2 |
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); |