mirror of
https://github.com/Zerodya/dockeraise.git
synced 2026-06-20 02:00:05 +07:00
Can run even if user has Docker installed already
This commit is contained in:
+8
-1
@@ -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?)
|
||||
|
||||
Reference in New Issue
Block a user