From 1bb6feab1bd35cd5625aef67e833a8bf5bf85963 Mon Sep 17 00:00:00 2001 From: g* Date: Wed, 30 Oct 2019 22:28:35 +0200 Subject: [PATCH] Fixed wrong directory call for git sync. --- macupdater.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macupdater.sh b/macupdater.sh index c65c6a0..13550b1 100755 --- a/macupdater.sh +++ b/macupdater.sh @@ -88,7 +88,7 @@ echo "Brew cask updates complete" # Show this message above the progress bar # echo "NOTIFICATION:All local updates complete." -{ cd Projects/Programming/push/ find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} push \; cd Projects/Programming/push/; find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \; } >> $LOG +{ cd Projects/Programming/push/ find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} push \; cd Projects/Programming/pull/; find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \; } >> $LOG catcher Git-remote line echo "PROGRESS:90" # Show the progress bar at 90%