From a87c205a807b1f7ceb55695656bec554adbf76f3 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 10 Apr 2026 18:08:45 -0700 Subject: [PATCH] Finish changes to reload-shared which adds scripts to the local bin. --- rc_shared.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/rc_shared.sh b/rc_shared.sh index 3af0bb0..a49ce5f 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -60,6 +60,21 @@ function update-shared { mv -v $dir/rc_shared.sh ~/.rc_shared + local_bin="$HOME/bin" + remote_bin="shared-rc-deleteme/bin-shared" + if [[ -d "$local_bin" ]]; then + log "\n`date` - Found '$local_bin', adding scripts.\n" + refactor_script="refactor_music_library.sh" + wget -O "$refactor_script" \ + https://git.hyperling.com/me/shell-music-refactor-library/src/branch/main/refactor_music_library.sh + mv -v $refactor_script "$local_bin"/ + + mv -v $remote_bin/*.sh "$local_bin"/ + else + echo "Did not find '$local_bin', did not copy scripts." + fi + + log "\n`date` - Done! Removing git clone.\n" mv -v $dir ~/TRASH/"$dir-`date "+%Y%m%d-%H%M%S"`" log "\n`date` - Complete! Please note this does NOT update bin files."