Skip to content

Commit

Permalink
Chose between "docker-compose" and "docker compose" in confirm_remove.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Entaigner committed Apr 19, 2024
1 parent e1e66f7 commit 4570f6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion confirm_remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
echo "Warning: This will remove all containers and volumes, including persistent data. Do you want to continue? [Y/N]"
read ans
if [ "$ans" == "Y" ] || [ "$ans" == "y" ]; then
docker-compose down -v
command docker-compose 2>/dev/null
if [ "$?" == "0" ]; then
docker-compose down -v
else
docker compose down -v
fi
else
echo "Operation cancelled."
fi

0 comments on commit 4570f6f

Please sign in to comment.