The-binutils-package-contains-the-windmc-1-manual: fix wc -l output processing

This commit is contained in:
Miloš Prchlík 2024-08-07 12:41:23 +02:00 committed by mprchlik
commit 54e002d31a

View file

@ -40,7 +40,7 @@ rlJournalStart
rlPhaseStartTest
rlRun "rpm -ql $PACKAGES | grep windmc > windmc.txt" 0,1
rlLogInfo "$(cat windmc.txt)"
rlRun "FILE_CNT=$(wc -l windmc.txt)"
rlRun "FILE_CNT=$(wc -l windmc.txt | awk '{print $1}')"
if [ "$FILE_CNT" == "1" ]; then
rlFail "Either windmg manpage or binary is present - both options are wrong."
elif [ "$FILE_CNT" == "2" ]; then