added installation check for append

This commit is contained in:
pyr0ball 2022-08-27 01:12:23 -07:00
parent dc1d33597d
commit ae7b8ab967

View file

@ -93,6 +93,9 @@ install(){
cp $rundir/lib/vimfiles/vimrc.local $HOME/.vimrc
fi
if [[ $(cat ${HOME}/.bashrc | grep -c pyr0) = 0 ]] ; then
echo -e $bashrc_append >> $HOME/.bashrc && center "bashc.d installed..." || fail "Unable to append .bashrc"
fi
crontab -l -u $runuser | cat - ${rundir}/lib/quickinfo.cron | crontab -u $runuser -
check-deps
if [[ "$bins_missing" != "false" ]] ; then
warn "Some of the utilities needed by this script are missing"