Skip to content

Commit

Permalink
chore: replace json with yaml as generated config format
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev committed Sep 26, 2024
1 parent 851ecfd commit 2cd4439
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/default-flatpaks/v2/default-flatpaks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const defaultInstallation = {
}
install: []
}
const configPath = '/usr/share/bluebuild/default-flatpaks/configuration.json'
const configPath = '/usr/share/bluebuild/default-flatpaks/configuration.yaml'

def main [configStr: string] {
let config = $configStr | from json
let config = $configStr | from yaml

let installations = $config.installations | each {|installation|
mut merged = $defaultInstallation | merge $installation
Expand Down Expand Up @@ -50,7 +50,7 @@ def main [configStr: string] {

open $configPath
| append $installations
| to json | save -f $configPath
| to yaml | save -f $configPath

print $"(ansi green_bold)Successfully generated following installations:(ansi reset)"
print ($installations | to yaml)
Expand Down

0 comments on commit 2cd4439

Please sign in to comment.