adjustments

This commit is contained in:
mcguirepr89
2022-04-11 10:49:16 -04:00
parent 36c897e52b
commit 2214319e03
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -1,10 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Simple new installer # Simple new installer
my_dir=$(realpath $(dirname 0))
HOME=$HOME HOME=$HOME
USER=$USER USER=$USER
export my_dir=$my_dir
export HOME=$HOME export HOME=$HOME
export USER=$USER export USER=$USER
+1 -1
View File
@@ -4,7 +4,7 @@ set -x
exec > >(tee -i installation-$(date +%F).txt) 2>&1 exec > >(tee -i installation-$(date +%F).txt) 2>&1
set -e # exit installation if anything fails set -e # exit installation if anything fails
trap '${my_dir}/dump_logs.sh && echo -e "\n\nExiting the installation. Goodbye!" && exit 1' SIGINT trap '${my_dir}/dump_logs.sh && echo -e "\n\nExiting the installation. Goodbye!" && exit 1' SIGINT
cd $my_dir || exit 1 cd $my_dir/scripts || exit 1
if [ "$(uname -m)" != "aarch64" ];then if [ "$(uname -m)" != "aarch64" ];then
echo "BirdNET-Pi requires a 64-bit OS. echo "BirdNET-Pi requires a 64-bit OS.