Skip to content

Commit 1edef2b

Browse files
committed
.github/scripts/macOS/prepare.sh: suppres brew out
suppress `brew list` output It is used just to check if a package is installed and the output is print is output to stdout. To stderr is print that it if the package is not installed.
1 parent 9cee3b1 commit 1edef2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/scripts/macOS/prepare.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ set -- \
6868
# shellcheck disable=SC2034
6969
for n in $(seq $#); do
7070
# if not installed, add on the back of positional parameters
71-
if ! brew list "$1" 2>/dev/null; then
71+
if ! brew list "$1" >/dev/null 2>&1; then
7272
set -- "$@" "$1"
7373
fi
7474
shift # remove from the front

.github/workflows/ccpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ jobs:
215215
id: upload-release
216216
if: (github.repository == 'CESNET/UltraGrid' && github.ref == 'refs/heads/master') || startsWith(github.ref, 'refs/tags/')
217217
run: |
218-
brew list jq 2>/dev/null || brew install jq
218+
brew list jq >/dev/null 2>&1 || brew install jq
219219
.github/scripts/replace-asset.sh $TAG UltraGrid-$VERSION.dmg application/x-apple-diskimage macOS%20$(uname -m)%20build
220220
- name: Upload Build
221221
if: steps.upload-release.conclusion == 'skipped'

0 commit comments

Comments
 (0)