Merge pull request #1158 from jhe2/wc-argument-fix

[HRDN-7231] When calling wc, use the short -l flag instead of --lines…
This commit is contained in:
Michael Boelen 2021-06-03 13:46:58 +02:00 committed by GitHub
commit 54684aaac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@
LogText "Test: Check for registered non-native binary formats" LogText "Test: Check for registered non-native binary formats"
NFORMATS=0 NFORMATS=0
if [ -d /proc/sys/fs/binfmt_misc ]; then 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 fi
if [ ${NFORMATS} -eq 0 ]; then if [ ${NFORMATS} -eq 0 ]; then
LogText "Result: no non-native binary formats found" LogText "Result: no non-native binary formats found"