Skip to content

Commit

Permalink
Fix path seperator (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Simmer authored Oct 28, 2020
1 parent a8dde2b commit c9b8b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/orb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,7 @@ func unzipToOrbPath(src, dest string) error {
// This is neccesary because the zip downloaded from GitHub will have a
// directory with the actual template, rather than the template being
// top-level.
pathParts := strings.Split(f.Name, string(os.PathSeparator))
pathParts := strings.Split(f.Name, "/")
pathParts = append([]string{dest}, pathParts[1:]...)
path := filepath.Join(pathParts...)

Expand Down

0 comments on commit c9b8b87

Please sign in to comment.