Add missing copy of rc_shared, as well as some comments.

This commit is contained in:
2026-05-06 17:10:22 -07:00
parent facb2836c9
commit 9f9cdf0361

View File

@@ -106,6 +106,7 @@ function update-shared-old {
PROJECT_SHARED="$HOME/.git-env-shared"
function update-shared2 {
# Refresh the local env-shared repo.
if [[ -d $shared ]]; then
log "`date` - Updating '$PROJECT_SHARED'.\n"
git -C "$PROJECT_SHARED" switch "$branch"
@@ -117,6 +118,10 @@ function update-shared2 {
"$PROJECT_SHARED" --branch=$branch
fi
# Tha main piece! Reload the shared RC file.
cp -v "$PROJECT_SHARED"/rc_shared.sh ~/.rc_shared
# Copy the scripts from the shared bin to the home bin.
local_bin="$HOME/bin"
remote_bin="$PROJECT_SHARED/bin-shared"
if [[ -d "$local_bin" ]]; then