Skip to content

Commit

Permalink
Avoid creating files called "null" in %TEMP% -- Windows has a real NU…
Browse files Browse the repository at this point in the history
…L device.
  • Loading branch information
Julian C. Dunn committed May 1, 2013
1 parent 844dbb2 commit feb1b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/veewee/provider/core/box/wincp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module BoxCommand
def wincp(localfile,remotefile,options={})
raise Veewee::Error,"Box is not running" unless self.running?

if self.exec("cmd.exe /C dir #{wget_vbs_file} > %TEMP%\\null",{:exitcode=>"*"}).status != 0
if self.exec("cmd.exe /C dir #{wget_vbs_file} > NUL",{:exitcode=>"*"}).status != 0
env.ui.warn "Creating wget.vbs"
create_wget_vbs_command do |command_chunk, chunk_num|
self.exec("cmd.exe /C echo \"Rendering '#{wget_vbs_file}' chunk #{chunk_num}\" && #{command_chunk}")
Expand Down

0 comments on commit feb1b27

Please sign in to comment.