From 26a9ee5ded9f361f2fea2b9ae2797ace81d7f2e0 Mon Sep 17 00:00:00 2001 From: graysky Date: Tue, 19 Sep 2017 15:28:01 -0400 Subject: [PATCH] more robust stanza for version detection --- Makefile | 2 +- common/pulseaudio-ctl.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e06cb0b..65b2421 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION = 1.65 +VERSION = 1.66 PN = pulseaudio-ctl PREFIX ?= /usr diff --git a/common/pulseaudio-ctl.in b/common/pulseaudio-ctl.in index 6b00ad8..487d357 100644 --- a/common/pulseaudio-ctl.in +++ b/common/pulseaudio-ctl.in @@ -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