dockerupdate: return nonzero code on error condition

This commit is contained in:
Eric Torres 2023-11-13 16:14:18 -08:00
parent 2ded8ccd3a
commit c527c207f7

View File

@ -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