Skip to content

Commit

Permalink
[CMSP-678]: Shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Wagner committed Oct 11, 2023
1 parent 817974c commit d3705dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions bin/behat-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
# Delete the Pantheon site environment after the Behat test suite has run.
###

terminus whoami > /dev/null
if [ $? -ne 0 ]; then
if [ "$(terminus whoami)" -ne 0 ]; then
echo "Terminus unauthenticated; assuming unauthenticated build"
exit 0
fi
Expand Down
3 changes: 1 addition & 2 deletions bin/behat-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
# such that it can be run a second time if a step fails.
###

terminus whoami > /dev/null
if [ $? -ne 0 ]; then
if [ "$(terminus whoami)" -ne 0 ]; then
echo "Terminus unauthenticated; assuming unauthenticated build"
exit 0
fi
Expand Down
3 changes: 1 addition & 2 deletions bin/behat-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
# Execute the Behat test suite against a prepared Pantheon site environment.
###

terminus whoami > /dev/null
if [ $? -ne 0 ]; then
if [ "$(terminus whoami)" -ne 0 ]; then
echo "Terminus unauthenticated; assuming unauthenticated build"
exit 0
fi
Expand Down

0 comments on commit d3705dd

Please sign in to comment.