3 ms·
I think this snippet needs some context. In all contexts that I can imagine, the first line should actually be if which jq &>/dev/null; then brew install
by majewsky 7y ago
I think this snippet needs some context. In all contexts that I can imagine, the first line should actually be
if which jq &>/dev/null; then
brew install jq
fi
- playpause 7y agoThat seems more reasonable, but it's not what the author wrote. He precedes the snippet with "Don’t try to install things with brew if brew is not installed", so his intention does seem to be to swallow errors silently, which is definitely weird.
- deleted 7y ago[deleted]
- pletnes 7y agoHe might want his .bashrc to work on both macos and linux.