function name change

This commit is contained in:
Sahilb315
2025-04-23 01:12:26 +05:30
parent d636a928c4
commit cdc43d3a14
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ type ExtractorOptions struct {
// RunExtractor extracts an embedded script to a temp file and executes it
func RunPkgExtractor(opts ExtractorOptions) (string, error) {
interpreterPath, err := utils.GetInterpreterPath(opts.Interpreter)
interpreterPath, err := utils.GetExecutablePath(opts.Interpreter)
if err != nil {
return "", err
}
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"os/exec"
)
func GetInterpreterPath(name string) (string, error) {
func GetExecutablePath(name string) (string, error) {
path, err := exec.LookPath(name)
if err != nil {
return "", fmt.Errorf("interpreter '%s' not found in PATH: %s", name, err.Error())