Skip to content

Commit

Permalink
Fix KiCad configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Nov 21, 2024
1 parent 894da6b commit 931bb84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/tasks/brew.rake
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ namespace :brew do
'image2icon' => { flags: ["--appdir=#{converters_dir}"] },
'imageoptim' => { flags: ["--appdir=#{converters_dir}"] },
'keka' => {},
'kicad' => {},
'konica-minolta-bizhub-c750i-driver' => {},
'latexit' => {},
'minecraft' => {},
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/kicad.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
task :kicad => [:'brew:casks_and_formulae'] do
puts ANSI.blue { 'Configuring KiCad …' }

kicad_version = JSON.parse(capture('brew', 'info', '--json=v2', '--cask', 'kicad')).fetch('casks')[0].fetch('installed')
kicad_version = JSON.parse(capture('brew', 'info', '--json=v2', '--cask', 'kicad')).dig('casks', 0, 'installed')
kicad_major_minor_version = kicad_version[/(\d+\.\d+)/, 1]

raise unless kicad_major_minor_version
Expand Down

0 comments on commit 931bb84

Please sign in to comment.