make POSIX sh compliant
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
#!/bin/sh
|
||||
INCREMENT="2"
|
||||
|
||||
if [[ "$1" == "up" ]]; then
|
||||
if [ "$1" = "up" ]; then
|
||||
wpctl set-volume @DEFAULT_SINK@ $INCREMENT%+
|
||||
elif [[ "$1" == "down" ]]; then
|
||||
elif [ "$1" = "down" ]; then
|
||||
wpctl set-volume @DEFAULT_SINK@ $INCREMENT%-
|
||||
elif [[ "$1" == "mute" ]]; then
|
||||
elif [ "$1" = "mute" ]; then
|
||||
wpctl set-mute @DEFAULT_SINK@ toggle
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user