diff mbox

[v7,14/18] support/scripts/check-host-rpath: silent find command

Message ID 1457564339-27294-15-git-send-email-s.martin49@gmail.com
State Superseded
Headers show

Commit Message

Samuel Martin March 9, 2016, 10:58 p.m. UTC
Silent find command when HOST_DIR/usr/sbin does not exist.

Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Samuel Martin <s.martin49@gmail.com>

---
changes v6->v7:
- new patch
---
 support/scripts/check-host-rpath | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Arnout Vandecappelle March 10, 2016, 12:15 a.m. UTC | #1
On 03/09/16 23:58, Samuel Martin wrote:
> Silent find command when HOST_DIR/usr/sbin does not exist.

Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

  Can this be applied right away, maybe?

  Regards,
  Arnout

>
> Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
>
> ---
> changes v6->v7:
> - new patch
> ---
>   support/scripts/check-host-rpath | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/support/scripts/check-host-rpath b/support/scripts/check-host-rpath
> index 0bbac30..2d3ddec 100755
> --- a/support/scripts/check-host-rpath
> +++ b/support/scripts/check-host-rpath
> @@ -45,7 +45,7 @@ main() {
>                   "${pkg}"
>           fi
>           printf "***   %s\n" "${file}"
> -    done < <( find "${hostdir}"/usr/{bin,sbin} -type f -print |
> +    done < <( find "${hostdir}"/usr/{bin,sbin} -type f -print 2>/dev/null |
>                     readelf.filter_elf_executable )
>
>       return ${ret}
>
diff mbox

Patch

diff --git a/support/scripts/check-host-rpath b/support/scripts/check-host-rpath
index 0bbac30..2d3ddec 100755
--- a/support/scripts/check-host-rpath
+++ b/support/scripts/check-host-rpath
@@ -45,7 +45,7 @@  main() {
                 "${pkg}"
         fi
         printf "***   %s\n" "${file}"
-    done < <( find "${hostdir}"/usr/{bin,sbin} -type f -print |
+    done < <( find "${hostdir}"/usr/{bin,sbin} -type f -print 2>/dev/null |
                   readelf.filter_elf_executable )
 
     return ${ret}