make POSIX sh compliant

This commit is contained in:
2025-12-18 14:12:29 -08:00
parent 1f48d9808c
commit cdae221acf
11 changed files with 63 additions and 20 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
VOLUME=$(wpctl get-volume @DEFAULT_SINK@)
if [[ $VOLUME =~ "MUTED" ]]; then
if [ $VOLUME =~ "MUTED" ]; then
echo " MUTED"
fi
VOLUME=$(echo $VOLUME | sed s/"Volume: 0."//g)