Skip to content

Commit

Permalink
Merge pull request #346 from konstan/fix-create_floppy
Browse files Browse the repository at this point in the history
floppy file name being overwritten by one from an internal loop
  • Loading branch information
jedi4ever committed Aug 3, 2012
2 parents 1ac899d + 9f2a7ad commit 27bc74c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/veewee/provider/core/box/floppy.rb
Expand Up @@ -2,7 +2,7 @@ module Veewee
module Provider
module Core
module BoxCommand
def create_floppy(filename)
def create_floppy(floppy_filename)
# Todo Check for java
# Todo check output of commands

Expand All @@ -15,7 +15,7 @@ def create_floppy(filename)
FileUtils.cp("#{full_filename}","#{temp_dir}")
end
javacode_dir=File.expand_path(File.join(__FILE__,'..','..','..','..','..','java'))
floppy_file=File.join(definition.path,filename)
floppy_file=File.join(definition.path,floppy_filename)
if File.exists?(floppy_file)
env.logger.info "Removing previous floppy file"
FileUtils.rm(floppy_file)
Expand Down

0 comments on commit 27bc74c

Please sign in to comment.