Skip to content

Commit

Permalink
🐛 CP - Fix exploded path for windows (#731)
Browse files Browse the repository at this point in the history
Signed-off-by: Emily McMullan <[email protected]>
  • Loading branch information
eemcmullan authored Nov 20, 2024
1 parent 3959b8b commit 770609e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"net/http"
"os"
"os/exec"
"path"
"path/filepath"
"strings"
"sync"
Expand Down Expand Up @@ -215,7 +214,7 @@ func explode(ctx context.Context, log logr.Logger, archivePath, projectPath stri

// Create the destDir directory using the same permissions as the Java archive file
// java.jar should become java-jar-exploded
destDir := filepath.Join(path.Dir(archivePath), strings.Replace(path.Base(archivePath), ".", "-", -1)+"-exploded")
destDir := filepath.Join(filepath.Dir(archivePath), strings.Replace(filepath.Base(archivePath), ".", "-", -1)+"-exploded")
// make sure execute bits are set so that fernflower can decompile
err = os.MkdirAll(destDir, fileInfo.Mode()|0111)
if err != nil {
Expand Down

0 comments on commit 770609e

Please sign in to comment.