Auto Update
This commit is contained in:
parent
6bcbff4c2a
commit
5834af54fb
1 changed files with 2 additions and 2 deletions
4
pull.sh
4
pull.sh
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
if [ -d ~/git/dotfiles ] ; then
|
||||
if [[ -d ~/git/dotfiles ]] ; then
|
||||
git config --global user.email "matt@nelim.org"
|
||||
git config --global user.name "matt1432"
|
||||
|
||||
|
@ -7,7 +7,7 @@ if [ -d ~/git/dotfiles ] ; then
|
|||
git config pull.rebase false
|
||||
git pull
|
||||
|
||||
if [ $(sed 's/.* //' ~/git/dotfiles/.git/FETCH_HEAD) = "git.nelim.org:matt1432/dotfiles" ] ; then
|
||||
if [[ $(sed 's/.* //' ~/git/dotfiles/.git/FETCH_HEAD) = "git.nelim.org:matt1432/dotfiles" ]] ; then
|
||||
git commit -am "Auto Update"
|
||||
git push
|
||||
fi)
|
||||
|
|
Loading…
Reference in a new issue