Skip to content

Commit 4570f6f

Browse files
committed
Chose between "docker-compose" and "docker compose" in confirm_remove.sh
1 parent e1e66f7 commit 4570f6f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

confirm_remove.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
echo "Warning: This will remove all containers and volumes, including persistent data. Do you want to continue? [Y/N]"
33
read ans
44
if [ "$ans" == "Y" ] || [ "$ans" == "y" ]; then
5-
docker-compose down -v
5+
command docker-compose 2>/dev/null
6+
if [ "$?" == "0" ]; then
7+
docker-compose down -v
8+
else
9+
docker compose down -v
10+
fi
611
else
712
echo "Operation cancelled."
813
fi

0 commit comments

Comments
 (0)