From f1c744518ac821ce216a8319ca9632bb299d1640 Mon Sep 17 00:00:00 2001 From: Sijie Date: Thu, 14 Mar 2024 14:14:56 -0700 Subject: [PATCH] use jar xf to unzip --- test/kbaseauthcontroller/controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/kbaseauthcontroller/controller.go b/test/kbaseauthcontroller/controller.go index af1f800..80d8ca7 100644 --- a/test/kbaseauthcontroller/controller.go +++ b/test/kbaseauthcontroller/controller.go @@ -136,8 +136,8 @@ func pullTemplatesOutofAuth2Jar(classPath string) (string, error) { return "", err } - cmdargs := []string{classPath, "-d", dirPath} - cmd := exec.Command("unzip", cmdargs...) + cmdargs := []string{"xf", classPath} + cmd := exec.Command("jar", cmdargs...) cmd.Stdout = outfile cmd.Stderr = outfile err = cmd.Start()