mirror of
https://github.com/Zerodya/dockeraise.git
synced 2026-06-22 02:00:06 +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
|
# Check if Docker is already installed
|
||||||
if command -v docker &>/dev/null; then
|
if command -v docker &>/dev/null; then
|
||||||
|
while true; do
|
||||||
echo -e "${err} Docker is already installed."
|
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
|
fi
|
||||||
|
|
||||||
# Check if machine runs Debian (only checks if apt-get exists, maybe needs a better implementation?)
|
# Check if machine runs Debian (only checks if apt-get exists, maybe needs a better implementation?)
|
||||||
|
|||||||
Reference in New Issue
Block a user