From e1d9b6cf9496ffd53e73bf6a3aee2ff5b858f4d0 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 17 Apr 2026 16:09:40 -0700 Subject: [PATCH] Continue enhancing the auto-update version of env-shared. --- rc_shared.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/rc_shared.sh b/rc_shared.sh index cebc8c0..9476d35 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -121,7 +121,7 @@ function update-shared2 { remote_bin="$project/bin-shared" if [[ -d "$local_bin" ]]; then log "\n`date` - Found '$local_bin', adding scripts.\n" - mv -v $remote_bin/*.sh "$local_bin"/ + cp -v $remote_bin/*.sh "$local_bin"/ refactor_script="refactor_music_library.sh" wget -O "$refactor_script" \ @@ -133,9 +133,15 @@ function update-shared2 { echo "Did not find '$local_bin', did not copy scripts." fi } +alias shared-update2="update-shared2" +alias reload-shared2="update-shared2" +alias shared-reload2="update-shared2" if [[ -d $project ]]; then - git -C $project status | grep TBD && - echo "`date` - Updates to env-shared are available." + git -C $project fetch && git -C $project status | grep "is behind" \ + | while read status; do + log "\n\n`date` - Updates to env-shared are available via update-shared2." + log ": '$status'\n" + done fi & # Shortcuts #