diff --git a/pkg/node/bundle.go b/pkg/node/bundle.go index cba451a..ab71935 100644 --- a/pkg/node/bundle.go +++ b/pkg/node/bundle.go @@ -255,7 +255,8 @@ func createTarball(files map[string][]byte) ([]byte, error) { return buffer.Bytes(), nil } -// extractTarball extracts a tar archive to a directory, returns first executable found. +// minerPath, err := extractTarball(tarData, "/tmp/miners/xmrig") +// if err != nil { return "", nil, err } func extractTarball(tarData []byte, destDir string) (string, error) { // Ensure destDir is an absolute, clean path for security checks absDestDir, err := filepath.Abs(destDir)