mirror of
https://github.com/containers/podman-compose.git
synced 2025-03-10 21:18:18 +01:00
exit if not files
This commit is contained in:
parent
7ebbe2efc6
commit
7222fdb6e7
@ -769,6 +769,7 @@ class PodmanCompose:
|
|||||||
files = args.file
|
files = args.file
|
||||||
if not files:
|
if not files:
|
||||||
print("no docker-compose.yml or container-compose.yml file found, pass files with -f")
|
print("no docker-compose.yml or container-compose.yml file found, pass files with -f")
|
||||||
|
exit(-1)
|
||||||
ex = map(os.path.exists, files)
|
ex = map(os.path.exists, files)
|
||||||
missing = [ fn0 for ex0, fn0 in zip(ex, files) if not ex0 ]
|
missing = [ fn0 for ex0, fn0 in zip(ex, files) if not ex0 ]
|
||||||
if missing:
|
if missing:
|
||||||
|
Loading…
Reference in New Issue
Block a user