Skip to content

Commit

Permalink
.github/scripts/macOS/prepare.sh: suppres brew out
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MartinPulec committed Nov 25, 2024
1 parent 9cee3b1 commit 1edef2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/macOS/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ set -- \
# shellcheck disable=SC2034
for n in $(seq $#); do
# if not installed, add on the back of positional parameters
if ! brew list "$1" 2>/dev/null; then
if ! brew list "$1" >/dev/null 2>&1; then
set -- "$@" "$1"
fi
shift # remove from the front
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ jobs:
id: upload-release
if: (github.repository == 'CESNET/UltraGrid' && github.ref == 'refs/heads/master') || startsWith(github.ref, 'refs/tags/')
run: |
brew list jq 2>/dev/null || brew install jq
brew list jq >/dev/null 2>&1 || brew install jq
.github/scripts/replace-asset.sh $TAG UltraGrid-$VERSION.dmg application/x-apple-diskimage macOS%20$(uname -m)%20build
- name: Upload Build
if: steps.upload-release.conclusion == 'skipped'
Expand Down

0 comments on commit 1edef2b

Please sign in to comment.