xrootdatetime: better error handling

sh-initrd-on-root
Zynh Ludwig 2024-10-16 17:28:51 -07:00
parent ac6de63ef2
commit 431992eff7
1 changed files with 1 additions and 2 deletions

View File

@ -46,8 +46,7 @@ in
systemd.user.services.xrootdatetime = {
script = ''
while true; do
micMuted=$(${getExe pkgs.pamixer} --default-source --get-mute)
if [[ "$micMuted" == "true" ]]; then
if [[ "$(${getExe pkgs.pamixer} --default-source --get-mute)" == "true" ]]; then
mutedString="Mic Muted "
else
mutedString=""