Update Birders_Guide_Installer.sh

This commit is contained in:
Patrick McGuire
2021-10-27 16:13:29 -04:00
committed by GitHub
parent 9c56da0dc4
commit 3cbdc10937
+5 -2
View File
@@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
USER=pi
HOME=/home/pi
my_dir=${HOME}/BirdNET-Pi my_dir=${HOME}/BirdNET-Pi
branch=newinstaller branch=newinstaller
trap '${my_dir}/scripts/dump_logs.sh && exit' EXIT SIGHUP SIGINT trap '${my_dir}/scripts/dump_logs.sh && exit' EXIT SIGHUP SIGINT
@@ -82,9 +84,9 @@ stage_2() {
echo "Connected!" echo "Connected!"
echo echo
if [ ! -d ${my_dir} ];then if [ ! -d ${my_dir} ];then
cd ~ || exit 1 cd ${HOME} || exit 1
echo "Cloning the BirdNET-Pi repository $branch branch into your home directory" echo "Cloning the BirdNET-Pi repository $branch branch into your home directory"
git clone --depth 1 -b ${branch} https://github.com/mcguirepr89/BirdNET-Pi.git ~/BirdNET-Pi git clone --depth 1 -b ${branch} https://github.com/mcguirepr89/BirdNET-Pi.git ${HOME}/BirdNET-Pi
else else
cd ${my_dir} && git checkout ${branch} cd ${my_dir} && git checkout ${branch}
fi fi
@@ -101,6 +103,7 @@ and then close the Mouse Pad editing window to continue."
else else
editor=nano editor=nano
fi fi
echo $editor && exit echo $editor && exit
$editor ${my_dir}/Birders_Guide_Installer_Configuration.txt $editor ${my_dir}/Birders_Guide_Installer_Configuration.txt
while pgrep $editor &> /dev/null;do while pgrep $editor &> /dev/null;do