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
commit019486e27ace0a0534a31f1cd70bf29e3287ed17 (patch)
tree538c5cecc405ebf6f4448ea25b9804a0231ea3bb
parentfec61848ae594fca52311274b9b5669fac402745 (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