From 7222fdb6e78501f8f49a8bbeb862cc297fb729ca Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Thu, 7 Nov 2019 18:55:49 +0200 Subject: [PATCH] exit if not files --- podman_compose.py | 1 + 1 file changed, 1 insertion(+) diff --git a/podman_compose.py b/podman_compose.py index 967b824..2fc63d8 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -769,6 +769,7 @@ class PodmanCompose: files = args.file if not files: print("no docker-compose.yml or container-compose.yml file found, pass files with -f") + exit(-1) ex = map(os.path.exists, files) missing = [ fn0 for ex0, fn0 in zip(ex, files) if not ex0 ] if missing: