From 45bed2850e5bf31c3528cf3559e76c3823bb4340 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Mon, 19 Aug 2019 19:37:07 +0900 Subject: Reduce sub-shell and use `&&` instead of `;` --- .github/workflows/macos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/macos.yml') diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index b809010821..1dcd992d33 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -20,7 +20,7 @@ jobs: sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate - name: Install libraries run: | - brew update || (sleep 5; brew update) || (sleep 60; brew update) + brew update || { sleep 5 && brew update; } || { sleep 60 && brew update; } brew install gdbm gmp libffi openssl@1.1 zlib autoconf automake libtool readline # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - name: Checkout ruby/ruby -- cgit v1.2.3