Update newinstaller.sh

This commit is contained in:
Patrick McGuire
2022-02-18 14:20:35 -05:00
committed by GitHub
parent e2acc020f1
commit f62d39d877
+8 -1
View File
@@ -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