Skip to content

Commit da142ea

Browse files
committed
ci-build.sh: eliminate BUILD_OS variable
We can just test for the existence of the brew program.
1 parent b2d56f4 commit da142ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ci-build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# service.
77
#
88
# Required environment variables:
9-
# BUILD_OS - the operating system running the current build (e.g. macOS)
109
# BUILD_REPOSITORY - the repository slug (org/repo) running the current build
1110

1211
dir="$(dirname "$0")"
@@ -98,8 +97,8 @@ EOL
9897
fi
9998
fi
10099

101-
# Install GPG on OSX/macOS
102-
if [ $BUILD_OS = 'macOS' ]; then
100+
# Install GPG on macOS
101+
if which brew >/dev/null 2>/dev/null; then
103102
HOMEBREW_NO_AUTO_UPDATE=1 brew install gnupg2
104103
fi
105104

0 commit comments

Comments
 (0)