Skip to content

Commit

Permalink
Merge pull request #117 from Drugsosos/main
Browse files Browse the repository at this point in the history
fix(issue#116): fixed docker staying opened
  • Loading branch information
fwartner committed May 21, 2023
2 parents 3ce05fa + cc41e8d commit 53b2c24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mac-cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,14 @@ fi
if type "docker" &>/dev/null; then # TODO add count_dry
if [ -z "$dry_run" ]; then
if ! docker ps >/dev/null 2>&1; then
close_docker=true
open --background -a Docker
fi
msg 'Cleaning up Docker'
docker system prune -af &>/dev/null
if [ "$close_docker" = true ]; then
killall Docker
fi
fi
fi

Expand Down

0 comments on commit 53b2c24

Please sign in to comment.