tinyramfs: suppress output of command -v ldd

This commit is contained in:
illiliti 2021-05-10 16:05:36 +03:00
parent e5e289284b
commit db22e16dc9

View File

@ -190,7 +190,7 @@ copy_binary()
copy_file "$binary" "/bin/${binary##*/}" 755 1 copy_file "$binary" "/bin/${binary##*/}" 755 1
# Skip copying binary dependencies if ldd not available. # Skip copying binary dependencies if ldd not available.
command -v ldd || return 0 command -v ldd > /dev/null || return 0
# Copy binary dependencies if any exist. # Copy binary dependencies if any exist.
ldd "$binary" 2> /dev/null | ldd "$binary" 2> /dev/null |