File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -161,32 +161,33 @@ def execute
161
161
return false
162
162
end
163
163
164
+ arduino_package = "Arduino #{ @desired_ide_version } package"
164
165
attempts = 0
165
166
166
167
loop do
167
168
if File . exist? package_file
168
- @output . puts "Arduino package seems to have been downloaded already" if attempts . zero?
169
+ @output . puts "#{ arduino_package } seems to have been downloaded already" if attempts . zero?
169
170
break
170
171
elsif attempts >= DOWNLOAD_ATTEMPTS
171
172
break @output . puts "After #{ DOWNLOAD_ATTEMPTS } attempts, failed to download #{ package_url } "
172
173
else
173
- @output . print "Attempting to download Arduino package with #{ downloader } "
174
+ @output . print "Attempting to download #{ arduino_package } with #{ downloader } "
174
175
download
175
176
@output . puts
176
177
end
177
178
attempts += 1
178
179
end
179
180
180
181
if File . exist? extracted_file
181
- @output . puts "Arduino package seems to have been extracted already"
182
+ @output . puts "#{ arduino_package } seems to have been extracted already"
182
183
elsif File . exist? package_file
183
184
@output . print "Extracting archive with #{ extracter } "
184
185
extract
185
186
@output . puts
186
187
end
187
188
188
189
if File . exist? self . class . force_install_location
189
- @output . puts "Arduino package seems to have been installed already"
190
+ @output . puts "#{ arduino_package } seems to have been installed already"
190
191
elsif File . exist? extracted_file
191
192
install
192
193
else
You can’t perform that action at this time.
0 commit comments