added filter for empty lines
parent
dcb776a9d2
commit
f9edc2c96a
|
@ -45,10 +45,12 @@ echo "Done.";
|
||||||
} else {
|
} else {
|
||||||
//run status command list otherwise
|
//run status command list otherwise
|
||||||
foreach ($status_commands as $command) {
|
foreach ($status_commands as $command) {
|
||||||
|
if ($command != ""){
|
||||||
$output = shell_exec($command);
|
$output = shell_exec($command);
|
||||||
echo "<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
|
echo "<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue