Skip to content

Commit

Permalink
Merge pull request vivien#471 from Aster89/master
Browse files Browse the repository at this point in the history
volume-pulseaudio: use [[ <cond> ]] instead of [ <cond> ]
  • Loading branch information
denisse-dev committed Dec 7, 2022
2 parents ce22d76 + 24ed81a commit fc2c105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion volume-pulseaudio/volume-pulseaudio
Expand Up @@ -126,7 +126,7 @@ function print_format {

function print_block {
ACTIVE=$(pacmd list-sinks | grep "state\: RUNNING" -B4 -A7 | grep "index:\|name:\|volume: \(front\|mono\)\|muted:")
[ -z "$ACTIVE" ] && ACTIVE=$(pacmd list-sinks | grep "index:\|name:\|volume: \(front\|mono\)\|muted:" | grep -A3 '*')
[[ -z "$ACTIVE" ]] && ACTIVE=$(pacmd list-sinks | grep "index:\|name:\|volume: \(front\|mono\)\|muted:" | grep -A3 '*')
for name in INDEX NAME VOL MUTED; do
read $name
done < <(echo "$ACTIVE")
Expand Down

0 comments on commit fc2c105

Please sign in to comment.