Skip to content

Commit ef06489

Browse files
Merge pull request #88 from fabian-thomas/fix-colormuted
fix empty color muted from command line
2 parents dd6f72c + 92ee815 commit ef06489

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pulseaudio-control

+5-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,11 @@ while [[ "$1" = --* ]]; do
528528
;;
529529
--color-muted|--colour-muted)
530530
if getOptVal "$@"; then shift; fi
531-
COLOR_MUTED="%{F#$val}"
531+
if [ -n "$val" ]; then
532+
COLOR_MUTED="%{F#$val}"
533+
else
534+
COLOR_MUTED=""
535+
fi
532536
;;
533537
--notifications)
534538
NOTIFICATIONS=yes

0 commit comments

Comments
 (0)