added bashrc.d append check for previous install
This commit is contained in:
parent
07f828ca92
commit
6a71242b4a
1 changed files with 5 additions and 1 deletions
|
|
@ -75,7 +75,11 @@ install(){
|
||||||
cp $rundir/lib/vimfiles/crystallite.vim /usr/share/vim/${viminstall}/colors/crystallite.vim
|
cp $rundir/lib/vimfiles/crystallite.vim /usr/share/vim/${viminstall}/colors/crystallite.vim
|
||||||
cp $rundir/lib/vimfiles/vimrc.local $HOME/.vimrc
|
cp $rundir/lib/vimfiles/vimrc.local $HOME/.vimrc
|
||||||
fi
|
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(){
|
remove(){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue