summaryrefslogtreecommitdiff
path: root/Push
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-01-07 17:44:34 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-01-07 17:44:34 +0000
commit435eac9fd457af9d38738a412aa81d859550d650 (patch)
treee989276a016344d528bc2f0269b1d6e6acb8fa06 /Push
parenta16d703c48d3f6d48ec8d66df294ca75be67b9b7 (diff)
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
Diffstat (limited to 'Push')
-rwxr-xr-xPush4
1 files changed, 4 insertions, 0 deletions
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