Skip to content

Commit

Permalink
Update public/install-jq.sh
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
yarikbratashchuk and coderabbitai[bot] authored May 13, 2024
1 parent 28a79a4 commit 36be7bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/install-jq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# adding /opt/homebrew/bin to the $PATH variable based on the shell
if [[ -f "$HOME/.bash_profile" ]]; then
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> "$HOME/.bash_profile"
echo "export PATH=\"/opt/homebrew/bin:\$PATH\"" >> "$HOME/.bash_profile"
source "$HOME/.bash_profile"
elif [[ -f "$HOME/.bashrc" ]]; then
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> "$HOME/.bashrc"
echo "export PATH=\"/opt/homebrew/bin:\$PATH\"" >> "$HOME/.bashrc"
source "$HOME/.bashrc"
elif [[ -f "$HOME/.zshrc" ]]; then
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> "$HOME/.zshrc"
echo "export PATH=\"/opt/homebrew/bin:\$PATH\"" >> "$HOME/.zshrc"
source "$HOME/.zshrc"
else
echo "Unsupported shell. Please add /opt/homebrew/bin to your PATH manually."
Expand Down

0 comments on commit 36be7bc

Please sign in to comment.