Skip to content

Commit

Permalink
Fix completion generation scripts on Windows (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi authored Jan 16, 2020
1 parent 5c48590 commit 44bd21c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion completion/shells/generate_scripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func writeScript(script string) {
scriptFile, err := os.Create("jfrog")
cliutils.ExitOnErr(err)
defer scriptFile.Close()
err = scriptFile.Chmod(os.ModePerm)
err = os.Chmod("jfrog", os.ModePerm)
cliutils.ExitOnErr(err)
_, err = scriptFile.WriteString(script)
cliutils.ExitOnErr(err)
Expand Down
2 changes: 1 addition & 1 deletion completion/shells/generate_scripts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
)

func TestGenrateScripts(t *testing.T) {
func TestGenerateScripts(t *testing.T) {
bashPath := filepath.Join("bash", "jfrog")
zshPath := filepath.Join("zsh", "jfrog")

Expand Down

0 comments on commit 44bd21c

Please sign in to comment.