Closed wtanaka closed 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
[ -f /etc/system-release ] && grep -q 'Amazon Linux' /etc/system-release
and it runs without an error
This is easily reproducible on a computer with no /etc/system-release
Run this command line in bash:
and you get:
-bash: [: too many arguments
Run this command line in bash:
and it runs without an error