From b897438c2c4114801f0495d71c7ccb54df4b5bfe Mon Sep 17 00:00:00 2001 From: Clemens Klug Date: Wed, 10 Apr 2019 09:36:03 +0200 Subject: [PATCH] fix #3: only print when there are services to print --- discover.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discover.py b/discover.py index 21140bd..25b2f86 100644 --- a/discover.py +++ b/discover.py @@ -67,7 +67,8 @@ if __name__ == "__main__": services = find_services(args.service_dir) autostarts = find_autostart_services(services) if args.list: - print("\n".join(autostarts)) + if autostarts: + print("\n".join(autostarts)) else: import start for service in autostarts: