From 083e10a75d521a567dfd926be8e6efaa31ae1ed4 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 26 Oct 2021 13:00:53 +1000 Subject: [PATCH] wp-uninstalled: fix a few shellcheck complaints --- wp-uninstalled.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-uninstalled.sh b/wp-uninstalled.sh index 7878a2d3..79e53f29 100755 --- a/wp-uninstalled.sh +++ b/wp-uninstalled.sh @@ -3,6 +3,7 @@ set -e # This is unset by meson +# shellcheck disable=SC2157 if [ -z "@MESON@" ]; then SOURCEDIR="@MESON_SOURCE_ROOT@" BUILDDIR="@MESON_BUILD_ROOT@" @@ -34,11 +35,11 @@ done shift $((OPTIND-1)) if [ $# -eq 0 ]; then - echo "Usage: $(basename ${BASH_SOURCE[0]}) [options] " + echo "Usage: $(basename "${BASH_SOURCE[0]}") [options] " exit 1 fi -if [ ! -d ${BUILDDIR} ]; then +if [ ! -d "${BUILDDIR}" ]; then echo "Invalid build directory: ${BUILDDIR}" exit 1 fi @@ -51,4 +52,4 @@ export WIREPLUMBER_DATA_DIR="${SOURCEDIR}/src" export PATH="${BUILDDIR}/src:${BUILDDIR}/src/tools:$PATH" export LD_LIBRARY_PATH="${BUILDDIR}/lib/wp:$LD_LIBRARY_PATH" -exec $@ +exec "$@"