Auto weekly update

This commit is contained in:
Thomas Forgione 2019-05-03 10:46:18 +02:00
parent 012803bdf0
commit 23af299538
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 8 additions and 0 deletions

View File

@ -151,6 +151,10 @@ clone_dotfiles() {
fi fi
git_clone https://gitea.tforgione.fr/tforgione/dotfiles/ $HOME/.config/dotfiles git_clone https://gitea.tforgione.fr/tforgione/dotfiles/ $HOME/.config/dotfiles
echo "# Checks that the update is done weekly, if its not done, prints a nice message" > $HOME/.config/dotfiles/zsh/extraconfig.zsh
echo "export UPDATE_CHECK=weekly" >> $HOME/.config/dotfiles/zsh/extraconfig.zsh
mkdir -p $HOME/.config/dotfiles/.data mkdir -p $HOME/.config/dotfiles/.data
if [ "$sudo_available" != "true" ]; then if [ "$sudo_available" != "true" ]; then
@ -185,6 +189,10 @@ configure_shell() {
rm -f $HOME/.bashrc rm -f $HOME/.bashrc
ln -s `realpath $HOME/.config/dotfiles/bashrc` `realpath $HOME/.bashrc` ln -s `realpath $HOME/.config/dotfiles/bashrc` `realpath $HOME/.bashrc`
mkdir -p $HOME/.config/dotfiles/bash
echo "# Checks that the update is done weekly, if its not done, prints a nice message" > $HOME/.config/dotfiles/bash/extraconfig.bash
echo "export UPDATE_CHECK=weekly" >> $HOME/.config/dotfiles/bash/extraconfig.bash
info "bashrc configured successfully" info "bashrc configured successfully"
return return