From e2b42cf6fad4110a194e90bd0296604121cdd49c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 10 Nov 2016 18:38:35 +0100 Subject: [PATCH] docker: add --needed flag to pacman in install script --- docker/install | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/install b/docker/install index c5bb6f25..69f9ade6 100755 --- a/docker/install +++ b/docker/install @@ -1,14 +1,13 @@ #!/usr/bin/env bash -case "$OSTYPE" in +case $OSTYPE in darwin*) brew cask install virtualbox brew install docker docker-compose docker-machine ;; linux*) - if [[ -f /etc/arch-release ]] - then - sudo pacman --noconfirm -S docker docker-compose + if [[ -f /etc/arch-release ]]; then + sudo pacman --needed --noconfirm -S docker docker-compose sudo systemctl enable docker.service sudo systemctl start docker.service fi