mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
bc6e11d6e4
commit
f19d998906
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue