From 244f14e3aa396fddf006600653f0b71c9048cdeb Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 12 Jun 2024 09:51:13 +0200 Subject: [PATCH] Lint --- birdnet-pi/rootfs/helpers/timedatectl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birdnet-pi/rootfs/helpers/timedatectl b/birdnet-pi/rootfs/helpers/timedatectl index de4e4cdf8..482f0d75b 100644 --- a/birdnet-pi/rootfs/helpers/timedatectl +++ b/birdnet-pi/rootfs/helpers/timedatectl @@ -20,7 +20,7 @@ set_timezone() { echo "$new_timezone" | sudo tee /etc/timezone >/dev/null sudo ln -sf /usr/share/zoneinfo/"$new_timezone" /etc/localtime if [ -f /etc/environment ]; then sudo sed -i "/TZ/c\TZ=$new_timezone" /etc/environment; fi - if [ -d /var/run/s6/container_environment ]; then sudo echo "$new_timezone" > /var/run/s6/container_environment/TZ; fi + if [ -d /var/run/s6/container_environment ]; then echo "$new_timezone" | sudo tee /var/run/s6/container_environment/TZ > /dev/null; fi echo "$new_timezone" }