test: allow logger() to run w/o UNIX socket path

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2022-07-31 22:49:37 +02:00
parent 43d8640aac
commit 911e3f05a1

View File

@ -108,7 +108,11 @@ logger()
shift shift
fi fi
../src/logger -u "$sock" "$@" if [ -f "$sock" ]; then
../src/logger -u "$sock" "$@"
else
../src/logger "$@"
fi
} }
# shellcheck disable=SC2046,SC2086 # shellcheck disable=SC2046,SC2086