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 #