From bc16abddf658210932b58a41fe8ee5c5d4a9f3d7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 28 Oct 2015 09:47:45 +0000 Subject: Fix --- rubyfy.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'rubyfy.rb') diff --git a/rubyfy.rb b/rubyfy.rb index d47299a..a4de5a0 100755 --- a/rubyfy.rb +++ b/rubyfy.rb @@ -111,7 +111,6 @@ private def run_command(server, user=ENV["USER"], pcond=nil, command="id", background=false, root=false, script=nil) log(:VERBOSE,"#{server}::Connecting") - command = nil sudo = root ? "sudo " : "" if background nohup = "nohup " @@ -120,7 +119,6 @@ private nohup = nohup_end = "" end Net::SSH.start(server, user) do |ssh| - exec_command = nil if script log(:VERBOSE, "#{server}::Using script #{script} (command will be overwritten)") basename = File.basename(script) -- cgit v1.2.3