From b0dd1d08db63a3396bc49245ec677b78e5acfe16 Mon Sep 17 00:00:00 2001 From: Eragos Date: Fri, 15 Jul 2016 22:41:59 +0200 Subject: [PATCH] fix: change directory first --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions b/functions index c178348..5904b53 100644 --- a/functions +++ b/functions @@ -1,5 +1,7 @@ # Update dotfiles udot() { + cwd=$(pwd) + cd ~/.dotfiles/ info=$(git --no-pager log --pretty="%h by %an <%ae> on %cd" -1 --abbrev-commit) local=$(git --no-pager log --pretty="%H" -1) remote=$(git ls-remote origin | awk "/HEAD/ {print \$1}") @@ -27,8 +29,6 @@ udot() { echo "Already up to date :)" else echo -e "Updating..." - cwd=$(pwd) - cd ~/.dotfiles/ git pull bin/dfm install source ~/.dotfiles/aliases