Skip to content

Commit

Permalink
more robust stanza for version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
graysky2 committed Sep 19, 2017
1 parent 22bd868 commit 26a9ee5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 1.65
VERSION = 1.66
PN = pulseaudio-ctl

PREFIX ?= /usr
Expand Down
2 changes: 1 addition & 1 deletion common/pulseaudio-ctl.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ exit 1; }

# really crude pactl version check since commands are different for different
# versions of pactl. sorry users of PA <5
PAVERSION=$(pactl --version | grep pactl | sed 's/^pactl //')
PAVERSION=$(pactl --version | grep pactl | pactl --version | grep pactl | sed -e 's/^pactl //' -e 's/\([0-9.]\+\).*/\1/')
if [[ ${PAVERSION%%.*} -lt 5 ]]; then
# really old versions
PCV=0
Expand Down

0 comments on commit 26a9ee5

Please sign in to comment.