added filter for empty lines

master
BodgeMaster 2020-03-05 03:07:56 +01:00
parent dcb776a9d2
commit f9edc2c96a
1 changed files with 4 additions and 2 deletions

View File

@ -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>