Skip to content

Commit

Permalink
Add uninstall_trunk & update install_trunk makefile command (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
katybaulch authored Mar 19, 2024
1 parent 7ee3a03 commit e04a813
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ bootstrap:

install_trunk:
$(eval trunk_installed=$(shell trunk --version > /dev/null 2>&1 ; echo $$? ))
ifneq ($(trunk_installed),0)
ifneq (${trunk_installed},0)
$(eval OS_NAME=$(shell uname -s | tr A-Z a-z))
ifeq ($(OS_NAME),linux)
curl https://get.trunk.io -fsSL | bash
endif
ifeq ($(OS_NAME),darwin)
brew install trunk-io
endif
endif

uninstall_trunk:
sudo rm -if `which trunk`
rm -ifr ${HOME}/.cache/trunk

git_hooks: install_trunk
trunk fmt
Expand Down

0 comments on commit e04a813

Please sign in to comment.