Skip to content

Commit

Permalink
Fix path seperator for orb init. (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Simmer authored Oct 22, 2020
1 parent 275feba commit 94b7e37
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 @@ -1399,7 +1399,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 94b7e37

Please sign in to comment.