mirror of https://github.com/CISOfy/lynis.git
Renamed tr command
This commit is contained in:
parent
548a8d6bae
commit
737b9359ae
|
@ -403,7 +403,7 @@
|
||||||
Register --test-no FIRE-4538 --os Linux --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check nftables basic configuration"
|
Register --test-no FIRE-4538 --os Linux --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check nftables basic configuration"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
# Retrieve nft version
|
# Retrieve nft version
|
||||||
NFT_VERSION=$(${NFTBINARY} --version 2> /dev/null | ${AWKBINARY} '{ if ($1=="nftables") { print $2 }}' | ${TRBINARY} -d 'v')
|
NFT_VERSION=$(${NFTBINARY} --version 2> /dev/null | ${AWKBINARY} '{ if ($1=="nftables") { print $2 }}' | tr -d 'v')
|
||||||
Report "nft_version=${NFT_VERSION}"
|
Report "nft_version=${NFT_VERSION}"
|
||||||
LogText "Result: found version ${NFT_VERSION} of nft"
|
LogText "Result: found version ${NFT_VERSION} of nft"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue