Skip to content

Commit

Permalink
ignore output of command -v
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Aug 5, 2023
1 parent b4801f8 commit d1f5cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ mkdir -p "${TEMP}/reviewdog/bin"

echo '::group::🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog'
(
if command -v curl; then
if command -v curl 2>&1 > /dev/null; then
curl -sfL "${INSTALL_SCRIPT}"
elif command -v wget; then
elif command -v wget 2>&1 > /dev/null; then
wget -O - "${INSTALL_SCRIPT}"
else
echo "curl or wget is required" >&2
Expand Down

0 comments on commit d1f5cc7

Please sign in to comment.