Преглед изворни кода

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 година
родитељ
комит
a1a498f96c
1 измењених фајлова са 2 додато и 1 уклоњено
  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