This commit is contained in:
frederik
2024-01-31 14:08:35 +01:00
parent c4a4cba8e2
commit 1579e6b5bf
+1 -2
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -x
# Update BirdNET-Pi
trap 'exit 1' SIGINT SIGHUP
USER=$(awk -F: '/1000/ {print $1}' /etc/passwd)
@@ -20,9 +21,7 @@ PIP_UPDATED=0
# helpers
sudo_with_user () {
set -x
sudo -u $USER "$@"
set +x
}
ensure_apt_updated () {