diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-01-07 17:44:34 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2006-01-07 17:44:34 +0000 |
commit | 435eac9fd457af9d38738a412aa81d859550d650 (patch) | |
tree | e989276a016344d528bc2f0269b1d6e6acb8fa06 /Push | |
parent | a16d703c48d3f6d48ec8d66df294ca75be67b9b7 (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-x | Push | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |