Skip to content

Commit fbcacba

Browse files
committed
fix: strip file extension from local tool paths at ui startup
Signed-off-by: Nick Hale <[email protected]>
1 parent d6fc958 commit fbcacba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cli/gptscript.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ func (r *GPTScript) Run(cmd *cobra.Command, args []string) (retErr error) {
348348
return fmt.Errorf("cannot determine absolute path to script %s: %v", file, err)
349349
}
350350
gptOpt.Env = append(gptOpt.Env, "SCRIPTS_PATH="+filepath.Dir(absPathToScript))
351-
file = filepath.Base(file)
351+
file = strings.TrimSuffix(filepath.Base(file), ".gpt")
352352
} else {
353353
cwd, err := os.Getwd()
354354
if err != nil {

0 commit comments

Comments
 (0)