Skip to content

Commit 64c4e14

Browse files
committed
Change to clean directory before archive extraction
1 parent f99957d commit 64c4e14

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crew

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ def unpack (meta)
383383
target_dir = nil
384384
Dir.chdir CREW_BREW_DIR do
385385
puts "Unpacking archive, this may take a while..."
386+
system "rm", "-rf", "#{extract_dir}"
386387
Dir.mkdir("#{extract_dir}") unless Dir.exist?("#{extract_dir}")
387388
if meta[:filename][-4,4] == ".zip"
388389
system "unzip", "-qq", "-d", "#{extract_dir}", meta[:filename]

0 commit comments

Comments
 (0)