pw-jack: Fix empty string checks

shellcheck seems to hate x"$FOO" = x checks, so let's use the
appropriate test arguments instead.
This commit is contained in:
Arun Raghavan 2021-05-31 12:46:18 -04:00
parent bc6e11d6e4
commit f19d998906

View file

@ -33,7 +33,7 @@ while getopts 'hr:vs:p:' param ; do
export PIPEWIRE_REMOTE
;;
v)
if [ x"$PIPEWIRE_DEBUG" = x ]; then
if [ -z "$PIPEWIRE_DEBUG" ]; then
PIPEWIRE_DEBUG=3
else
PIPEWIRE_DEBUG=$(( PIPEWIRE_DEBUG + 1 ))
@ -64,7 +64,7 @@ done
shift $(( OPTIND - 1 ))
if [ x"$PERIOD" != x ]; then
if [ -n "$PERIOD" ]; then
PIPEWIRE_LATENCY="$PERIOD/$SAMPLERATE"
export PIPEWIRE_LATENCY
fi