Skip to content

Commit 083e10a

Browse files
committed
wp-uninstalled: fix a few shellcheck complaints
1 parent 51713d3 commit 083e10a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

wp-uninstalled.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
set -e
44

55
# This is unset by meson
6+
# shellcheck disable=SC2157
67
if [ -z "@MESON@" ]; then
78
SOURCEDIR="@MESON_SOURCE_ROOT@"
89
BUILDDIR="@MESON_BUILD_ROOT@"
@@ -34,11 +35,11 @@ done
3435
shift $((OPTIND-1))
3536

3637
if [ $# -eq 0 ]; then
37-
echo "Usage: $(basename ${BASH_SOURCE[0]}) [options] <wireplumber|wpctl|wpexec|...>"
38+
echo "Usage: $(basename "${BASH_SOURCE[0]}") [options] <wireplumber|wpctl|wpexec|...>"
3839
exit 1
3940
fi
4041

41-
if [ ! -d ${BUILDDIR} ]; then
42+
if [ ! -d "${BUILDDIR}" ]; then
4243
echo "Invalid build directory: ${BUILDDIR}"
4344
exit 1
4445
fi
@@ -51,4 +52,4 @@ export WIREPLUMBER_DATA_DIR="${SOURCEDIR}/src"
5152
export PATH="${BUILDDIR}/src:${BUILDDIR}/src/tools:$PATH"
5253
export LD_LIBRARY_PATH="${BUILDDIR}/lib/wp:$LD_LIBRARY_PATH"
5354

54-
exec $@
55+
exec "$@"

0 commit comments

Comments
 (0)