Skip to content

Commit

Permalink
🐛 (export): Fix filepath for cfg,presets.json download
Browse files Browse the repository at this point in the history
  • Loading branch information
thibmaek committed Jun 30, 2022
1 parent e20e249 commit 52a1ab8
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-go@master
with:
go-version: 1.18
- name: 'Install runtimes (via asdf)'
uses: asdf-vm/actions/install@v1
- name: 'Vet'
run: go vet
- name: 'Build'
Expand Down
Binary file modified bin/wled-backup_linux_armv6
Binary file not shown.
Binary file modified bin/wled-backup_linux_armv7
Binary file not shown.
Binary file modified bin/wled-backup_linux_x64
Binary file not shown.
Binary file modified bin/wled-backup_mac_arm64
Binary file not shown.
Binary file modified bin/wled-backup_mac_x64
Binary file not shown.
Binary file modified bin/wled-backup_win_x64.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions cmd/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ func (cmd *ExportCmd) Run() {

func downloadConfig(host string, destDir string) {
fmt.Printf("Downloading config for host '%s'\n", host)
url := fmt.Sprintf("http://%s/edit?download=cfg.json", host)
url := fmt.Sprintf("http://%s/edit?download=/cfg.json", host)
util.DownloadFile(fmt.Sprintf("%s.config.json", destDir), url)
}

func downloadPresets(host string, destDir string) {
fmt.Printf("Downloading presets for host '%s'\n", host)
url := fmt.Sprintf("http://%s/edit?download=presets.json", host)
url := fmt.Sprintf("http://%s/edit?download=/presets.json", host)
util.DownloadFile(fmt.Sprintf("%s.presets.json", destDir), url)
}

0 comments on commit 52a1ab8

Please sign in to comment.