Skip to content

Commit

Permalink
fix path bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiangs18 committed Mar 14, 2024
1 parent f1c7445 commit 408b570
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/kbaseauthcontroller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func New(p Params) (*Controller, error) {
if err != nil {
return nil, err
}
err = installTemplates(p.Auth2Jar, templateDir)
err = installTemplates(classPath, templateDir)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -136,8 +136,8 @@ func pullTemplatesOutofAuth2Jar(classPath string) (string, error) {
return "", err
}

cmdargs := []string{"xf", classPath}
cmd := exec.Command("jar", cmdargs...)
cmdargs := []string{classPath, "-d", dirPath}
cmd := exec.Command("unzip", cmdargs...)
cmd.Stdout = outfile
cmd.Stderr = outfile
err = cmd.Start()
Expand Down

0 comments on commit 408b570

Please sign in to comment.