diff --git a/rc_shared.sh b/rc_shared.sh index 347c44b..41bd0cd 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -107,7 +107,7 @@ function update-shared-old { PROJECT_SHARED="$HOME/.git-env-shared" function update-shared2 { # Refresh the local env-shared repo. - if [[ -d $shared ]]; then + if [[ -d $PROJECT_SHARED ]]; then log "`date` - Updating '$PROJECT_SHARED'.\n" git -C "$PROJECT_SHARED" switch "$branch" git -C "$PROJECT_SHARED" pull --recurse-submodules || \