mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-29 17:25:34 +00:00
Self updating
This commit is contained in:
parent
c0ae64ccfb
commit
3b1afd08ec
@ -76,5 +76,18 @@ function dotfiles {
|
||||
done
|
||||
}
|
||||
|
||||
# Check dotfiles for updates
|
||||
function update {
|
||||
echo Checking for dotfile updates
|
||||
startTime=$(date +%s -r $dotdir)
|
||||
cd $dotdir && git pull
|
||||
endTime=$(date +%s -r $dotdir)
|
||||
if (( "$startTime" < "$endTime" )); then
|
||||
sh $dotdir/scripts/install.sh
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
update
|
||||
dotfiles
|
||||
emacs
|
||||
|
Loading…
x
Reference in New Issue
Block a user