Skip to content

Commit

Permalink
fixes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
graysky2 committed Sep 18, 2017
1 parent 5c436f1 commit 22bd868
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 1.64
VERSION = 1.65
PN = pulseaudio-ctl

PREFIX ?= /usr
Expand Down
4 changes: 4 additions & 0 deletions common/pulseaudio-ctl.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ exit 1; }
# versions of pactl. sorry users of PA <5
PAVERSION=$(pactl --version | grep pactl | sed 's/^pactl //')
if [[ ${PAVERSION%%.*} -lt 5 ]]; then
# really old versions
PCV=0
elif [[ 1 -eq "$(echo "${PAVERSION} > 10.9" | bc)" ]]; then
# since v11, they reverted the -- requirement
PCV=2
elif [[ 1 -eq "$(echo "${PAVERSION} > 5.1" | bc)" ]]; then
# version is upstream 5.99.2 or higher
PCV=2
Expand Down

0 comments on commit 22bd868

Please sign in to comment.