make POSIX sh compliant
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user