Skip to content

Commit

Permalink
Pack Installer fails to install packs with a backslash in the license…
Browse files Browse the repository at this point in the history
… file path (#238)

fixed:
golang "path" object has issues handling backslash, changed to filepath
object.

also see: #232
  • Loading branch information
thorstendb-ARM authored Jan 9, 2024
1 parent 0f44586 commit c8a87e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/installer/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"fmt"
"net/url"
"os"
"path"
"path/filepath"
"strings"

Expand Down Expand Up @@ -457,7 +456,7 @@ func (p *PackType) extractEula(packPath string) error {
return err
}

eulaFileName := packPath + "." + path.Base(p.Pdsc.License)
eulaFileName := packPath + "." + filepath.Base(p.Pdsc.License)

if utils.GetEncodedProgress() {
log.Infof("[L:F\"%s\"]", eulaFileName)
Expand Down

0 comments on commit c8a87e8

Please sign in to comment.