check if bash already is done

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-03-09 20:40:10 -06:00
parent 6caa00c9d0
commit 8c11a42768
1 changed files with 18 additions and 7 deletions

View File

@ -1,8 +1,23 @@
all:
echo is this a new install?
@echo
@echo is this a new install?
@echo if so, run:
@echo
@echo 'make new-install'
@echo
check:
echo ${WIT_USER}
new-install:
make setup-bash
make go
setup-bash:
ifeq ($(WIT_BASH),true)
echo WIT_BASH is already set WIT_USER=${WIT_USER}
exit
else
echo WIT_BASH is not set WIT_USER=${WIT_USER}
cat bashrc/.bashrc >> ~/.bashrc
endif
go:
wget https://go.dev/dl/go1.19.linux-amd64.tar.gz
@ -16,10 +31,6 @@ git-update:
cd ~/.config/wit/
git pull
setup-bash:
echo ${WIT_USER}
cat bashrc/.bashrc >> ~/.bashrc
setup-vim:
cp ~/.config/wit/vimrc ~/.config/