diff --git a/pkg/gui/custom_commands.go b/pkg/gui/custom_commands.go index 0c36b87..f998160 100644 --- a/pkg/gui/custom_commands.go +++ b/pkg/gui/custom_commands.go @@ -18,9 +18,8 @@ func (gui *Gui) createCommandMenu(customCommands []config.CustomCommand, command return command.InternalFunction() } - resolvedCommand := command.Command if command.Shell { - resolvedCommand = gui.OSCommand.NewCommandStringWithShell(command.Command) + resolvedCommand = gui.OSCommand.NewCommandStringWithShell(resolvedCommand) } // if we have a command for attaching, we attach and return the subprocess error