From c527c207f7abc1b2addf5247efb6dc6849a993b8 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Mon, 13 Nov 2023 16:14:18 -0800 Subject: [PATCH] dockerupdate: return nonzero code on error condition --- zsh/.config/zsh/dockerupdate.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/.config/zsh/dockerupdate.zsh b/zsh/.config/zsh/dockerupdate.zsh index 12e8079..031cd2f 100644 --- a/zsh/.config/zsh/dockerupdate.zsh +++ b/zsh/.config/zsh/dockerupdate.zsh @@ -7,7 +7,7 @@ dockerupdate() { # If either docker is not installed or docker-compose file is missing, do not run if [[ ! -x "$(which docker)" ]] && ([[ ! -r docker-compose.yml ]] || [[ ! -r docker-compose.yaml ]]); then - return + return 1 else until docker compose pull; do docker compose pull