Comment

Comment by asaph

> Don’t try to install things with brew if brew is not installed:

   if which brew 2>&1 /dev/null ; then
        brew install jq
   fi
This just hides a useful error message (brew not installed). I would rather just see that error message (either interactively or in a log) and have the script fail. Hiding the error message just leads to an eventual failure down the road when jq is invoked.
parent asaph 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton