diff --git a/providers/iiotg/units/ishtp/jobs.pxu b/providers/iiotg/units/ishtp/jobs.pxu index d7a49133bf..98b89b038f 100644 --- a/providers/iiotg/units/ishtp/jobs.pxu +++ b/providers/iiotg/units/ishtp/jobs.pxu @@ -13,7 +13,7 @@ command: for m in $expected_modules do echo "Checking module: $m" - if ! [ "$(lsmod | grep -w $m)" ]; then + if ! lsmod | grep -qw "$m"; then echo "FAIL: The '$m' module is not loaded!" EXIT=1 else @@ -53,13 +53,13 @@ imports: from com.canonical.plainbox import manifest requires: manifest.has_eclite == 'True' command: - lsmod | grep -w ishtp_eclite - if [[ "$?" -ne 0 ]]; then + if lsmod | grep -w ishtp_eclite; then + echo "ishtp_eclite module loaded" + else echo "The 'ishtp_eclite' module isn't loaded!" echo "Please make sure this feature is supported on this platform and check the BIOS setting." exit 1 fi - echo "ishtp_eclite module loaded" unit: job category_id: intel-ishtp