Merge "Fix os-cmd cross-distro compatibility"

This commit is contained in:
Jenkins 2017-08-28 19:51:17 +00:00 committed by Gerrit Code Review
commit 9565cd80ef

View File

@ -21,7 +21,7 @@
__check_cmd_avail ()
{
if [ "z$(which $1)" == "z" ]; then
if hash ${1} &> /dev/null; then
echo "The command '$1' could not be found, exiting"
exit 1
fi