From 435eac9fd457af9d38738a412aa81d859550d650 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 7 Jan 2006 17:44:34 +0000 Subject: Warn if you cannot split a line and continue git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@54 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- Push | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Push b/Push index 63a743a..1820a39 100755 --- a/Push +++ b/Push @@ -30,6 +30,10 @@ def getFilesMD5(host, ssh_hostname) f.each_line{ |l| l.chomp! (h,file) = l.split(/\s+/,2) + unless file + STDERR.puts "Could not split '#{l}' into hash and filename - cmd was '#{cmd}'" + next + end md5[file] = h } f.close -- cgit v1.2.3