]> code.ossystems Code Review - openembedded-core.git/commit
base-files: profile: Avoid using "command" to determine if programs exist
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Thu, 19 Jul 2018 18:19:40 +0000 (20:19 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jul 2018 12:16:31 +0000 (13:16 +0100)
commitba8510deb73e07f17be051fa15a91731ec10382f
tree5eac61e11c43fe4fc406f7d37cc8b4e8134e421c
parent5797631dc7a68e10c848ef06dd9eed011bc06e34
base-files: profile: Avoid using "command" to determine if programs exist

Since the existence of "command" in itself is not guaranteed, using it
to determine if other executables exist is moot. Instead just run the
executables and let the shell determine if they exist. By piping stderr
to /dev/null we avoid unnecessary warnings in case they do not exist.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/base-files/base-files/profile