From ac4d628d0b813a25cc708b9ab717c1bd1832a81a Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Thu, 19 May 2022 19:18:29 +0200 Subject: [PATCH] Fix install.sh --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index d42715a..03e95f4 100755 --- a/install.sh +++ b/install.sh @@ -9,13 +9,13 @@ if [[ "$EUID" == 0 ]]; then echo "Run script as normal user" fi -$(SUDO) apt update -$(SUDO) apt install software-properties-common -$(SUDO) apt-add-repository --yes --update ppa:ansible/ansible -$(SUDO) apt install -y git ansible +"${SUDO}" apt update +"${SUDO}" apt install software-properties-common +"${SUDO}" apt-add-repository --yes --update ppa:ansible/ansible +"${SUDO}" apt install -y git ansible -mkdir -p $(HOME)/src -cd $(HOME)/src +mkdir -p "${HOME}/src" +cd "${HOME}/src" git clone "$ANSIBLE_REPO" cd ansible-desktop ansible-playbook localhost.yml