This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# shellcheck disable=SC1091 | |
if [ "$1" != "--reinstall" ]; then | |
# exit if docker is already installed | |
if [[ $(which docker) && $(docker --version) ]]; then | |
echo "Docker already installed" | |
echo "Use --reinstall to reinstall" | |
exit 0 | |
fi |
OlderNewer