Commit Graph

3 Commits

Author SHA1 Message Date
Michal Čihař a34eb6b6ca Drop bash-specific message translation from check-rpaths
Message translation in scripts via $-prefix is bash-specific, but
check-rpaths is a /bin/sh script, drop the bashism. There are no
translations anyway so this is a no-op for all practial purposes.
Originally reported and fixed in Debian (DebBug:772404)
2020-01-14 12:37:41 +02:00
Pavlina Moravcova Varekova e9c13c6565 Eliminate use of ambiguous logical operators in script conditionals
Prefer '[] && []' to '[ -a ]' and '[] || []' to '[ -o ]' in tests.
-a and -o to mean AND and OR in a [ .. ] test expression is not well
defined, and can cause incorrect results when arguments start with
dashes or contain !. Moreover binary -a and -o are inherently
ambiguous. test(1) man page recommends to use
'test EXPR1 && test EXPR2' or 'test EXPR1 || test EXPR2' instead.

It corrects warnings [SC2166] spotted by covscan.
2019-08-21 14:09:37 +03:00
Panu Matilainen b95a206f14 Include additional buildroot sanity check scripts (rhbz#245639)
- check-buildroot for checing buildroot files for references to $RPM_BUILD_ROOT
- check-rpaths* for checking buildroot files for broken rpaths

Scripts by Enrico Scholz, Ville Skyttä.
2007-07-04 15:06:20 +03:00