mirror of https://github.com/CISOfy/lynis.git
Fix: extra operand error
This commit is contained in:
parent
1b8459db08
commit
81ea5df3b3
|
@ -1552,7 +1552,7 @@
|
|||
# Check if we caught some string along all tests
|
||||
if [ ! "${SHORT}" = "" ]; then
|
||||
# Lowercase and see if we found a match
|
||||
SHORT=$(echo ${SHORT} | awk '{ print $1 }' | tr [[:upper:]] [[:lower:]])
|
||||
SHORT=$(echo ${SHORT} | awk '{ print $1 }' | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
case ${SHORT} in
|
||||
amazon-ec2) ISVIRTUALMACHINE=1; VMTYPE="amazon-ec2"; VMFULLTYPE="Amazon AWS EC2 Instance" ;;
|
||||
|
|
Loading…
Reference in New Issue