Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
fix: also npm / yarn pipe stderr to null
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Mar 20, 2024
1 parent 103b179 commit a8abf3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/binary_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Check if npm is installed
if command -v npm &> /dev/null; then
if ! [[ "$(npm list -g huffc)" =~ "empty" ]]; then
if ! [[ "$(npm list -g huffc 2> /dev/null)" =~ "empty" ]]; then
# huffc was installed via npm, return 0x00
echo -n 0x00
exit 0
Expand All @@ -11,7 +11,7 @@ fi

# Check if yarn is installed
if command -v yarn &> /dev/null; then
if [[ "$(yarn global list)" =~ "huffc" ]]; then
if [[ "$(yarn global list 2> /dev/null)" =~ "huffc" ]]; then
# huffc was installed via yarn, return 0x00
echo -n 0x00
exit 0
Expand Down

0 comments on commit a8abf3e

Please sign in to comment.