Pārlūkot izejas kodu

Build: ignore absence of docker-compose (#17331)

If devenv/docker-compose.yaml file is missing, `devenv-down`
and subsequently `devenv` is not going to work
Oleg Gaidarenko 6 gadi atpakaļ
vecāks
revīzija
a1a498f96c
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -104,7 +104,8 @@ endif
 # drop down the envs
 devenv-down:
 	@cd devenv; \
-	docker-compose down;
+	test -f docker-compose.yaml && \
+	docker-compose down || exit 0;
 
 # TODO recheck the rules and leave only necessary exclusions
 gosec: scripts/go/bin/gosec