#!/bin/bash
if [ command -v docker >/dev/null 2>&1 ]; then
	echo "Docker already installed.";
else
  echo "Installing docker ..."
  sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
  sudo sh -c "echo deb https://get.docker.com/ubuntu docker main" > /etc/apt/sources.list.d/docker.list
  sudo apt-get update --quiet
  sudo apt-get install  --quiet --assume-yes lxc-docker
  echo "Docker installed."
fi

#!/bin/bash
if [[ "command -v docker >/dev/null 2>&1" ]]; then
	echo "Docker already installed.";
else
  echo "Installing docker ..."
  sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
  sudo sh -c "echo deb https://get.docker.com/ubuntu docker main" > /etc/apt/sources.list.d/docker.list
  sudo apt-get update --quiet
  sudo apt-get install  --quiet --assume-yes lxc-docker
  echo "Docker installed."
fi

Fix condition to check if docker is installed
Fix condition to check if docker is installed
