Commit 7d5f88fe authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

whitespace

(cherry picked from commit 527773d7)
parent 5473da5e
......@@ -75,14 +75,10 @@ function add_colors($string)
function update_email($email)
{
// Did they pass an email?
if(!empty($email))
{
if (!empty($email)) {
// Put it in the smartd.conf file
shell_exec("/usr/bin/sed -i old 's/^DEVICESCAN.*/DEVICESCAN -H -m " . escapeshellarg($email) . "/' /usr/local/etc/smartd.conf");
}
// Nope
else
{
} else {
// Remove email flags in smartd.conf
shell_exec("/usr/bin/sed -i old 's/^DEVICESCAN.*/DEVICESCAN/' /usr/local/etc/smartd.conf");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment