[HRDN-7231] When calling wc, use the short -l flag instead of --lines to make it work with busybox's wc implementation also

This commit is contained in:
Johannes Heimansberg 2021-05-21 19:41:07 +02:00
parent d23c722c04
commit 5666ed0a6d
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@
LogText "Test: Check for registered non-native binary formats"
NFORMATS=0
if [ -d /proc/sys/fs/binfmt_misc ]; then
NFORMATS=$(${FINDBINARY} /proc/sys/fs/binfmt_misc -type f -not -name register -not -name status | ${WCBINARY} --lines)
NFORMATS=$(${FINDBINARY} /proc/sys/fs/binfmt_misc -type f -not -name register -not -name status | ${WCBINARY} -l)
fi
if [ ${NFORMATS} -eq 0 ]; then
LogText "Result: no non-native binary formats found"