From caa74dfaf8b42541fd1232e9cac0d9974fce7d93 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 28 Sep 2021 16:35:18 +0200 Subject: [PATCH] common: Do not warn on listing the nonexistent files The subshell was printing the error backtrace, but apparently it was of no consequences. Just assume that listing may fail, so we don't get any confusing backtraces. --- common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.sh b/common.sh index 6f6aa00435..f194361fff 100644 --- a/common.sh +++ b/common.sh @@ -979,8 +979,8 @@ fixup_liblto_softlinks() { local link local target # check both native (/usr/CHOST/) as well as cross compile (/usr/CHOST/CTARGET) paths - { ls -l "${root}/"usr/*/binutils-bin/lib/bfd-plugins/liblto_plugin.so 2>/dev/null; - ls -l "${root}/"usr/*/*/binutils-bin/lib/bfd-plugins/liblto_plugin.so 2>/dev/null; } \ + { ls -l "${root}/"usr/*/binutils-bin/lib/bfd-plugins/liblto_plugin.so 2>/dev/null || :; + ls -l "${root}/"usr/*/*/binutils-bin/lib/bfd-plugins/liblto_plugin.so 2>/dev/null || :; } \ | sed 's:.* \([^[:space:]]\+\) -> \([^[:space:]]\+\):\1 \2:' \ | while read link target; do local newtarget=$(echo "$target" | sed "s:${root}:/:")