diff options
Diffstat (limited to 'lognotify.rb')
-rwxr-xr-x | lognotify.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lognotify.rb b/lognotify.rb index 8ab9aa9..0f05bc9 100755 --- a/lognotify.rb +++ b/lognotify.rb @@ -74,7 +74,7 @@ end # Retrieve new lines via SSH. def retrieve_lines conf, lines command = "cat #{conf[:path]}" - command << " | sed '1,#{lines}d'" if lines > 0 + command << " | sed '1,#{lines}d'" unless lines.zero? return %x[ssh #{conf[:hostname]} "#{command}"] end |