Continue enhancing the auto-update version of env-shared.

This commit is contained in:
2026-04-17 16:09:40 -07:00
parent 71875470c2
commit e1d9b6cf94

View File

@@ -121,7 +121,7 @@ function update-shared2 {
remote_bin="$project/bin-shared" remote_bin="$project/bin-shared"
if [[ -d "$local_bin" ]]; then if [[ -d "$local_bin" ]]; then
log "\n`date` - Found '$local_bin', adding scripts.\n" 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" refactor_script="refactor_music_library.sh"
wget -O "$refactor_script" \ wget -O "$refactor_script" \
@@ -133,9 +133,15 @@ function update-shared2 {
echo "Did not find '$local_bin', did not copy scripts." echo "Did not find '$local_bin', did not copy scripts."
fi fi
} }
alias shared-update2="update-shared2"
alias reload-shared2="update-shared2"
alias shared-reload2="update-shared2"
if [[ -d $project ]]; then if [[ -d $project ]]; then
git -C $project status | grep TBD && git -C $project fetch && git -C $project status | grep "is behind" \
echo "`date` - Updates to env-shared are available." | while read status; do
log "\n\n`date` - Updates to env-shared are available via update-shared2."
log ": '$status'\n"
done
fi & fi &
# Shortcuts # # Shortcuts #