neillturner / kitchen-verifier-serverspec

A Test Kitchen Serverspec Verifer without having to transit the Busser layer
Other
39 stars 19 forks source link

bash: line 6: [: too many arguments #20

Closed wtanaka closed 7 years ago

wtanaka commented 7 years ago

This is easily reproducible on a computer with no /etc/system-release

Run this command line in bash:

[ -f /etc/system-release ] || [ grep -q 'Amazon Linux' /etc/system-release ]

and you get:

-bash: [: too many arguments

Run this command line in bash:

[ -f /etc/system-release ] && grep -q 'Amazon Linux' /etc/system-release

and it runs without an error