bootstrap: fix shellcheck warnings
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I86ef079c9632e5563a1a56d6a2e23aad59ecbc57
diff --git a/bootstrap.sh b/bootstrap.sh
index 9e232b6..3112382 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -18,7 +18,7 @@
clean)
test -f Makefile && make maintainer-clean
for file in ${AUTOCONF_FILES}; do
- find -name "$file" | xargs -r rm -rf
+ find . -name "$file" -print0 | xargs -0 -r rm -rf
done
exit 0
;;
@@ -28,6 +28,7 @@
case ${BOOTSTRAP_MODE} in
dev)
+ # shellcheck disable=SC2086 # CONFIGURE_FLAGS is intentionally split.
./configure \
${CONFIGURE_FLAGS} \
--enable-code-coverage \
@@ -35,6 +36,7 @@
"$@"
;;
*)
+ # shellcheck disable=SC2016
echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'
;;
esac