From 4570f6fb0e0dac8b477b15696a6d447f7ddfe847 Mon Sep 17 00:00:00 2001 From: Entaigner Date: Fri, 19 Apr 2024 20:19:24 +0200 Subject: [PATCH] Chose between "docker-compose" and "docker compose" in confirm_remove.sh --- confirm_remove.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/confirm_remove.sh b/confirm_remove.sh index 729c25070..051908e6d 100755 --- a/confirm_remove.sh +++ b/confirm_remove.sh @@ -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