From d1ce48c77370db67583ef6bf4ac0258e0004c52c Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Sun, 25 Jun 2023 10:21:30 +0200 Subject: [PATCH] Changed script file extension --- internal/app/host_shell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/host_shell.go b/internal/app/host_shell.go index 88d10dc..b1609ab 100644 --- a/internal/app/host_shell.go +++ b/internal/app/host_shell.go @@ -47,7 +47,7 @@ func (a *App) ExecuteShellScript(hostKey, dbKey, collKey, script string) (result } dirname := path.Join(a.Env.DataDirectory, "Shell Scripts") - fname := path.Join(dirname, fmt.Sprintf("%s.js", id.String())) + fname := path.Join(dirname, fmt.Sprintf("%s.mongosh.js", id.String())) if err := os.MkdirAll(dirname, os.ModePerm); err != nil { runtime.LogWarningf(a.ctx, "Shell: failed to mkdir %s", err.Error())