From 09211b5a32ad298245ee044a13943c6c9026b30e Mon Sep 17 00:00:00 2001 From: olli Date: Thu, 17 Nov 2022 12:34:52 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eraspi.sh=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- raspi.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/raspi.sh b/raspi.sh index 426cbca..1488b0b 100644 --- a/raspi.sh +++ b/raspi.sh @@ -4,9 +4,9 @@ set -e set -x # install ansible -which pip || ( sudo apt-get update ; sudo apt-get -y dist-upgrade ; sudo apt-get -y install python3-pip ) -which git || ( sudo apt-get update ; sudo apt-get -y dist-upgrade ; sudo apt-get -y install git ) -which ansible || sudo pip install ansible +which pip >/dev/null 2>&1 || ( sudo apt-get update ; sudo apt-get -y install python3-pip ) +which git >/dev/null 2>&1 || ( sudo apt-get update ; sudo apt-get -y install git ) +which ansible >/dev/null 2>&1 || sudo pip install ansible # run ansible playbooks for playbook in debian.ansible.basics \