feat: implemented user confirmation for safe removal of containers and volumes in Makefile
This commit is contained in:
1 parent
a016171573
commit
0f6bdaa602
2 files changed
+11
-1
No files matched your search
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
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
|
||||
else
|
||||
echo "Operation cancelled."
|
||||
fi
|
||||
Reference in new issue
Block a user