summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-13 22:11:28 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-13 22:11:28 +0000
commitb2f331ae09a295ea2fd2923ed9ab7de18fceba04 (patch)
tree538c5cecc405ebf6f4448ea25b9804a0231ea3bb
parentbfa2a562f0f12fbf2560966dbaea4d544b188004 (diff)
Remove the newline from lines prior to parsing.
-rwxr-xr-xbin/custodian-enqueue4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue
index 72ff5d3..e92c49b 100755
--- a/bin/custodian-enqueue
+++ b/bin/custodian-enqueue
@@ -209,6 +209,8 @@ class MonitorConfig
#
def parse_line( line )
+ line.chomp!
+
#
# A blank line, or a comment may be skipped.
#
@@ -414,7 +416,7 @@ class MonitorConfig
end
end
else
- puts "Unknown line: #{line}" if ( line.length > 2 )
+ puts "Unknown line: '#{line}'"
end
end