From f62d39d877afaf10667746d5f0894ed33dbe8e1c Mon Sep 17 00:00:00 2001 From: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com> Date: Fri, 18 Feb 2022 14:20:35 -0500 Subject: [PATCH] Update newinstaller.sh --- newinstaller.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/newinstaller.sh b/newinstaller.sh index 140af08..4c507dd 100644 --- a/newinstaller.sh +++ b/newinstaller.sh @@ -8,4 +8,11 @@ if ! which git &> /dev/null;then sudo apt -y install git fi git clone -b ${branch} https://github.com/mcguirepr89/BirdNET-Pi.git ${HOME}/BirdNET-Pi && -${HOME}/BirdNET-Pi/scripts/install_birdnet.sh +${HOME}/BirdNET-Pi/scripts/install_birdnet.sh | tee -a installation.log 2>&1 +if [ ${PIPESTATUS[0]} -eq 0 ];then + echo "Installation completed successfully" >> installation.log + sudo reboot +else + echo "The installation exited unsuccessfully." >> installation.log + exit 1 +fi