From b67746df3925706ee8da8dba26a2af2c2266db3f Mon Sep 17 00:00:00 2001 From: Jacob Alheid Date: Fri, 17 Nov 2023 23:35:34 -0800 Subject: [PATCH] fix(cz): use homebrew to install --- install/linux_amd64/cz | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/install/linux_amd64/cz b/install/linux_amd64/cz index f385ccc..13a85e3 100644 --- a/install/linux_amd64/cz +++ b/install/linux_amd64/cz @@ -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"