From debbb32d9101649e3c38fb529c73043c6edbbcee Mon Sep 17 00:00:00 2001 From: Gabriel Date: Thu, 4 Nov 2021 15:59:20 -0300 Subject: [PATCH] Add execution log of install.sh and condition to exit --- install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 60668a6..7c8846a 100755 --- a/install.sh +++ b/install.sh @@ -8,10 +8,12 @@ # ######################################################################################################################### -apt update > /dev/null 2>> /dev/null -apt install git -y > /dev/null 2>> /dev/null +apt update > /tmp/install-osx-proxmox.log 2>> /tmp/install-osx-proxmox.log +apt install git -y > /tmp/install-osx-proxmox.log 2>> /tmp/install-osx-proxmox.log -git clone https://github.com/luchina-gabriel/OSX-PROXMOX.git > /dev/null 2>> /dev/null +git clone https://github.com/luchina-gabriel/OSX-PROXMOX.git > /tmp/install-osx-proxmox.log 2>> /tmp/install-osx-proxmox.log + +if [ $? -ne 0 ]; then echo "Problem to clone repository from GitHub"; exit; fi; if [ ! -e /root/OSX-PROXMOX ]; then mkdir -p /root/OSX-PROXMOX; fi;