Skip to content

Commit

Permalink
Fix shell check
Browse files Browse the repository at this point in the history
  • Loading branch information
LiaoU3 committed Dec 15, 2023
1 parent 437658f commit d151cec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions providers/iiotg/units/ishtp/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d151cec

Please sign in to comment.