utils: check_app_exists: strip whitespace from binary when searching
PATCH 1/1 utils: check_app_exists: strip whitespace from binary when searching
It's possible that the binary to be searched for contains whitespace which will cause the search to fail, so strip any whitespace before looking.
Signed-off-by Ross Burton <[email protected]>
--- meta/classes/utils.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/utils.bbclass +1 -1
@@ -303,7 +303,7 @@ hardlinkdir () { def check_app_exists(app, d): - app = d.expand(app) + app = d.expand(app).strip() path = d.getVar('PATH', d, True) return bool(bb.utils.which(path, app))
Signature · 1 line
2.8.1