Skip to content

Commit

Permalink
Problem: Travis environment may be empty on GitHub Actions
Browse files Browse the repository at this point in the history
Solution: Prevent syntax error by quoting.
  • Loading branch information
bgermann committed Apr 20, 2024
1 parent bf4e61b commit 80e2c9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ case "$BUILD_TYPE" in
[ -z "$CI_TIME" ] || echo "`date`: Builds completed without fatal errors!"

echo "=== What is the GSL binary linked against (note libpcre2 in particular)?"
if [ $TRAVIS_OS_NAME == "linux" ]; then
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
ldd src/gsl || true
elif [ $TRAVIS_OS_NAME == "osx" ]; then
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
otool -L src/gsl || true
else
echo "Unsupported platform $TRAVIS_OS_NAME"
Expand Down

0 comments on commit 80e2c9e

Please sign in to comment.