fix #3: only print when there are services to print

master
Clemens Klug 2019-04-10 09:36:03 +02:00
parent 52409ee52e
commit b897438c2c
1 changed files with 2 additions and 1 deletions

View File

@ -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: