restraint-harness / restraint

Simple test harness which can be used with beaker
GNU General Public License v3.0
15 stars 26 forks source link

Quote variable usage in 01_dmesg_check #266

Closed JohnVillalovos closed 2 years ago

JohnVillalovos commented 2 years ago

In restraintd log files saw the following: May 18 09:26:56 system1.example.com restraintd[2330]: ./01_dmesg_check: line 53: [: too many arguments

We are setting the FALSESTRINGS variable and the | symbols in the value are interpreted by bash. Quote the value to prevent this.

StykMartin commented 2 years ago

Thanks @JohnVillalovos