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