Skip to content

Commit c1d3700

Browse files
committed
Auto-create libraries directory when ensuring installation of arduino backend
1 parent f9679d5 commit c1d3700

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99
### Added
10+
- `ensure_arduino_installation.rb` now ensures the existence of the library directory as well
1011

1112
### Changed
1213
- Conserve CI testing minutes by grouping CI into fewer runs

exe/ensure_arduino_installation.rb

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@
22
require 'arduino_ci'
33

44
# this will exit after Arduino is located and/or forcibly installed
5-
ArduinoCI::ArduinoInstallation.autolocate!
5+
backend = ArduinoCI::ArduinoInstallation.autolocate!
6+
lib_dir = backend.lib_dir
7+
8+
unless lib_dir.exist?
9+
puts "Creating libraries directory #{lib_dir}"
10+
lib_dir.mkpath
11+
end

0 commit comments

Comments
 (0)