Autopull test
This commit is contained in:
@@ -20,10 +20,9 @@ if [[ -f ~/.zsh/.shared_config ]] ; then
|
||||
fi
|
||||
|
||||
function update_dotfiles () {
|
||||
cd ~/dotfiles
|
||||
fetch=$(git fetch)
|
||||
if [[ -n "$fetch" ]]; then
|
||||
git pull 2>& 1 > /dev/null
|
||||
cd ~/dotfiles || return
|
||||
if git fetch --dry-run | grep -q .; then
|
||||
git pull > /dev/null 2>&1
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user