Skip to content

Instantly share code, notes, and snippets.

View jasenmichael's full-sized avatar

Jasen Michael jasenmichael

View GitHub Profile
#!/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