diff --git a/newinstaller.sh b/newinstaller.sh index d2b8c2d..6b4dcda 100644 --- a/newinstaller.sh +++ b/newinstaller.sh @@ -11,9 +11,9 @@ if ! which git &> /dev/null;then sudo apt update sudo apt -y install git fi -git clone -b ${branch} https://github.com/mcguirepr89/BirdNET-Pi.git ${HOME}/BirdNET-Pi && +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 if [ ${PIPESTATUS[0]} -eq 0 ];then echo "Installation completed successfully" sudo reboot diff --git a/scripts/install_config.sh b/scripts/install_config.sh index 6e4e50e..2189430 100755 --- a/scripts/install_config.sh +++ b/scripts/install_config.sh @@ -1,9 +1,10 @@ #!/usr/bin/env bash # Creates and installs the /etc/birdnet/birdnet.conf file -#set -x # Uncomment to enable debugging +set -x # Uncomment to enable debugging set -e trap 'exit 1' SIGINT SIGHUP +echo "Beginning $0" birdnet_conf=$my_dir/birdnet.conf install_config() {