diff --git a/asciinema_automation/script.py b/asciinema_automation/script.py index 9b8f55e..e0a0b0b 100644 --- a/asciinema_automation/script.py +++ b/asciinema_automation/script.py @@ -151,7 +151,9 @@ def execute(self): self.process.expect("\n") logger.debug(self.process.before) if not ( - "recording asciicast to " + str(self.outputfile) in str(self.process.before) + f"recording asciicast to {self.outputfile}" in str(self.process.before) + or f"appending to asciicast at {self.outputfile}" + in str(self.process.before) ): self.process.expect(pexpect.EOF) self.process.close()