From 6a71242b4aae388b23fe429d7e0b955f760e8cbc Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sat, 27 Aug 2022 00:40:34 -0700 Subject: [PATCH] added bashrc.d append check for previous install --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index dad687d..2bba6a6 100644 --- a/install.sh +++ b/install.sh @@ -75,7 +75,11 @@ install(){ cp $rundir/lib/vimfiles/crystallite.vim /usr/share/vim/${viminstall}/colors/crystallite.vim cp $rundir/lib/vimfiles/vimrc.local $HOME/.vimrc fi - echo -e $bashrc_append >> $HOME/.bashrc + if [[ $(cat ${HOME}/.bashrc | grep -c pyr0) = 0 ]] ; then + echo -e $bashrc_append >> $HOME/.bashrc && success "Installation complete!" || fail "Unable to append .bashrc" + else + success "Installation complete!" + fi } remove(){