Can run even if user has Docker installed already

This commit is contained in:
Nicola
2023-07-19 19:20:31 +02:00
committed by GitHub
parent b987a91c4c
commit 2a0c42f481
+8 -1
View File
@@ -13,8 +13,15 @@ fi
# Check if Docker is already installed
if command -v docker &>/dev/null; then
while true; do
echo -e "${err} Docker is already installed."
exit 1
read -p "Do you want still want to run the script? [y/n] " yn </dev/tty
case $yn in
[Yy] ) break;;
[Nn] ) exit 1;;
* ) ;;
esac
done
fi
# Check if machine runs Debian (only checks if apt-get exists, maybe needs a better implementation?)