From 773bf803b8cd02a83fec59c4067a7a44f6aa278f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 10 Jul 2023 19:21:36 +0200 Subject: [PATCH] Fix "output" var not existing ... --- bin/yunopaste | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/yunopaste b/bin/yunopaste index 9ed151c07..5da04fc96 100755 --- a/bin/yunopaste +++ b/bin/yunopaste @@ -47,9 +47,9 @@ def main(): else: anonymize_output_flag = True - command_output = sys.stdin.read() + output = sys.stdin.read() - if not command_output: + if not output: print("\033[31mError: No input received from stdin.\033[0m") sys.exit(1)