Tabs just changed to two spaces instead of 1 hard tab of length 4. While I personally prefer 1 tab, the ruby community at large has settled on 2 spaces as idiomatic :/


On Sep 20, 2013, at 15:49, SteveJM <notifications@github.com> wrote:

> In scripts/meterpreter/persistence.rb:
> 
> >  #-------------------------------------------------------------------------------
> >  def write_to_reg(key,script_on_target)
> >  	nam = Rex::Text.rand_text_alpha(rand(8)+8)
> > -	print_status("Installing into autorun as #{key}\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\#{nam}")
> > -	if(key)
> > -		registry_setvaldata("#{key}\\Software\\Microsoft\\Windows\\CurrentVersion\\Run",nam,script_on_target,"REG_SZ")
> > -		print_good("Installed into autorun as #{key}\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\#{nam}")
> > -		file_local_write(@clean_up_rc, "reg deleteval -k '#{key}\\Software\\Microsoft\\Windows\\CurrentVersion\\Run' -v #{nam}\n")
> > +    key_path = "#{key}\\Software\\Microsoft\\Windows\\CurrentVersion\\Run"
> Hmmm, I did indent with tabs with 1 tab equivalent to to 4 spaces (as per HACKING). I will re-check this.
> 
> —
> Reply to this email directly or view it on GitHub.