Skip to content

Commit

Permalink
fix(cz): use homebrew to install
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Nov 18, 2023
1 parent 8fa9058 commit b67746d
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions install/linux_amd64/cz
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
#!/bin/dash -e
if ! command -v npm &>/dev/null; then
$RUN echo "Could not find NPM."
$RUN exit 1
fi

# Install "globally"
$RUN npm install -g commitizen
$RUN npm install -g cz-conventional-changelog

# Link the command from the nvm bin/ into our PATH so we don't have to screw
# with nvm each time we want to use it
if which cz >/dev/null; then
$RUN mkdir -p "$HOME/.bin"
$RUN ln -sf "$(which cz)" "$HOME/.bin/"
fi
# Install or upgrade
$RUN brew "$( { [ -z "$UPGRADE" ] && echo "install"; } || echo "upgrade" )" "commitizen"

0 comments on commit b67746d

Please sign in to comment.