Skip to content

Commit

Permalink
Fix for shelllint
Browse files Browse the repository at this point in the history
Signed-off-by: Marcio Silva <[email protected]>
  • Loading branch information
Marcio Silva authored and kkaarreell committed Jul 17, 2023
1 parent e366051 commit f8cd27f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/test-helpers/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ limeWaitForAgentStatus() {

for I in `seq $TIMEOUT`; do
keylime_tenant -c status -u $UUID &> $OUTPUT
AGTSTATE=$(cat "$OUTPUT" | grep ^{ | tail -1 | jq -r ".[].operational_state")
AGTSTATE=$(cat "$OUTPUT" | grep "^{" | tail -1 | jq -r ".[].operational_state")
if echo "$AGTSTATE" | grep -E -q "$STATUS"; then
cat $OUTPUT
rm $OUTPUT
Expand Down Expand Up @@ -1216,7 +1216,7 @@ limeWaitForAgentRegistration() {

for I in `seq $TIMEOUT`; do
keylime_tenant -c regstatus -u $UUID &> $OUTPUT
REGSTATE=$(cat $OUTPUT | grep ^{ | jq -r ".[].operational_state")
REGSTATE=$(cat $OUTPUT | grep "^{" | jq -r ".[].operational_state")
if [ $REGSTATE == "Registered" ]; then
cat $OUTPUT
rm $OUTPUT
Expand Down

0 comments on commit f8cd27f

Please sign in to comment.