1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-01-18 13:07:58 +00:00

Changed script file extension

This commit is contained in:
Romein van Buren 2023-06-25 10:21:30 +02:00
parent b0d3e31378
commit d1ce48c773
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49

View File

@ -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())