Skip to content

Commit a59c87f

Browse files
committed
Fix permissions on extracted files
1 parent d9b1b29 commit a59c87f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/arduino_ci/arduino_downloader.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def extract
142142
dots = 0
143143
zip.each do |file|
144144
print "." if (dots % batch_size).zero?
145-
file.extract(file.name)
145+
file.restore_permissions = true
146+
file.extract { accept_all }
146147
dots += 1
147148
end
148149
end

spec/arduino_downloader_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
# expect(ad.existing_executable).to be nil
6060
# expect(ad.force_installed_executable).to be nil
6161

62-
expect(ad.force_install_location).to eq(File.join(ENV['HOME'], 'arduino_ci_ide'))
62+
expect(ad.force_install_location).to eq(File.join(ENV['HOME'], 'Arduino.app'))
6363
end
6464

6565
it "has correct instance properties" do

0 commit comments

Comments
 (0)