dockerupdate: return nonzero code on error condition
This commit is contained in:
parent
2ded8ccd3a
commit
c527c207f7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user