mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Don't run output through tac if there is no output https://github.com/webmin/webmin/issues/912
This commit is contained in:
@@ -144,7 +144,7 @@ elsif ($in{'view'}) {
|
||||
# Just run tail on the file
|
||||
$fullcmd = $tailcmd." ".quotemeta($file);
|
||||
}
|
||||
if ($config{'reverse'}) {
|
||||
if ($config{'reverse'} && $fullcmd) {
|
||||
$fullcmd .= " | tac";
|
||||
}
|
||||
if ($fullcmd) {
|
||||
|
||||
Reference in New Issue
Block a user