Wrong condition and wrong variable substitution in libgl1-amdgpu-mesa-dri in postinst script
Submitted by Andrew Shark
Assigned to Jeremy Newton
Link to original bug (#110963)
Description
19.20-812932 release for Ubuntu
In libgl1-amdgpu-mesa-dri in postinst script there is such condition:
# Support I+A hybrid graphics
if [ -f ... ] && [ "str1" != "str2" ]; then
You just compare two different strings? I guess you wanted to compare folder contents. But now that second condition will always be true.
Further there is:
if [ "${f%%/*}" = ... ]; then
there is extra percent symbol, you should remove it. Btw, in rpm release variant in scriptlet there is no such mistake.