check if running

This commit is contained in:
onyx-and-iris 2026-02-21 02:03:58 +00:00
parent cf82b29de5
commit c4e12fcaf7

View File

@ -249,7 +249,9 @@ func runCommand(ctx *context, cmd string) error {
if err != nil {
return fmt.Errorf("failed to run command '%s': %w", cmd, err)
}
ctx.sm.Stop()
if ctx.sm.Running() {
ctx.sm.Stop()
}
fmt.Print(removeColourCodes(resp))
return nil
}