commit 8a33f2e58022502ab320f0b2bd300d3ff19ff538
parent bd75ba87ad2f31a52a97e2ec7a0c866be3d66640
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 27 Jul 2023 18:15:44 +0200
In prereq.sh, redirect find error messages to /dev/null
The paths in which to search for dependencies may not exist, and the
find notifies this on stderr. In this commit, we make it silent because
it's not an error, whereas this message could panic the user.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/prereq.sh b/src/prereq.sh
@@ -30,7 +30,7 @@ prereq()
# Search for the "dot" file in PATH directories
# shellcheck disable=SC2086
- file=$(find ${paths} -name "${i}")
+ file=$(find ${paths} -name "${i}" 2> /dev/null)
if [ -z "${file}" ]; then
>&2 printf "%s: file not found\n" "${i}"
exit 1