From 586be9273b259bbab2cc505171b5001dc0b6db17 Mon Sep 17 00:00:00 2001 From: Luis Medel Date: Fri, 20 Sep 2024 07:17:35 +0200 Subject: [PATCH] GA style display name for shell action --- src/bluish/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bluish/context.py b/src/bluish/context.py index 7299ec6..02fef3c 100644 --- a/src/bluish/context.py +++ b/src/bluish/context.py @@ -457,7 +457,7 @@ def display_name(self) -> str: elif self.attrs.uses and self.attrs.uses != action.DEFAULT_ACTION: return self.attrs.uses elif self.attrs.run: - return next(self.attrs.run.split("\n", maxsplit=1)) + return self.attrs.run.split("\n", maxsplit=1)[0] else: return self.id