Skip to content

Commit 3cc654e

Browse files
committed
ci-build.sh: save the resolved platform from uname
Just in case we want to do anything else with it, reason about whether the platform is e.g. Linux, print it out, etc.
1 parent 27b43f6 commit 3cc654e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ci-build.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99

1010
dir="$(dirname "$0")"
1111

12-
MACOS=
13-
case "$(uname -s)" in
14-
Darwin) MACOS=1;;
15-
esac
12+
platform=$(uname -s)
1613

1714
success=0
1815
checkSuccess() {
@@ -188,7 +185,7 @@ EOL
188185
# --== GPG SETUP ==--
189186

190187
# Install GPG on macOS
191-
if [ "$MACOS" ]; then
188+
if [ "$platform" = Darwin ]; then
192189
HOMEBREW_NO_AUTO_UPDATE=1 brew install gnupg2
193190
fi
194191

0 commit comments

Comments
 (0)