From 7860960a403dbb362644b108e0cfc7150acff662 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Tue, 10 Jan 2023 21:11:39 +0100 Subject: [PATCH] Suppress stderr output from a find command --- cd-mount.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cd-mount.sh b/cd-mount.sh index 78feed9..ba731f4 100755 --- a/cd-mount.sh +++ b/cd-mount.sh @@ -51,7 +51,7 @@ fi #shellcheck disable=SC2006 readarray -t imageFiles \ - <<<"`find "$targetDir" -type f -iname "*$imageFileEnding"`" \ + <<<"`find "$targetDir" -type f -iname "*$imageFileEnding" 2>/dev/null`" \ >/dev/null 2>&1 #-----------------------------------------------------------------------