From d035be0dd33e4a2614761508fd8aadb0fd06fae1 Mon Sep 17 00:00:00 2001 From: Raphael Defosseux Date: Wed, 13 Feb 2019 10:04:40 +0100 Subject: [PATCH] Fix for all other OS versions Signed-off-by: Raphael Defosseux --- cmake_targets/tools/build_helper | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/cmake_targets/tools/build_helper b/cmake_targets/tools/build_helper index 995fd7063d..ad69ca3794 100755 --- a/cmake_targets/tools/build_helper +++ b/cmake_targets/tools/build_helper @@ -312,9 +312,18 @@ install_usrp_uhd_driver() { $SUDO apt-get -y install uhd-host fi if [ -z $1 ]; then - $SUDO /usr/local/bin/uhd_images_downloader + # quick workaround + if [[ "$OS_DISTRO" == "rhel7.6" ]]; then + $SUDO /usr/local/bin/uhd_images_downloader + else + $SUDO uhd_images_downloader + fi else - $SUDO /usr/local/bin/uhd_images_downloader -i $1 + if [[ "$OS_DISTRO" == "rhel7.6" ]]; then + $SUDO /usr/local/bin/uhd_images_downloader -i $1 + else + $SUDO uhd_images_downloader -i $1 + fi fi }