added support for running general updater on own
authorChris Koeritz <fred@gruntose.com>
Wed, 30 May 2018 18:27:13 +0000 (14:27 -0400)
committerChris Koeritz <fred@gruntose.com>
Wed, 30 May 2018 18:27:13 +0000 (14:27 -0400)
added a script plug at the bottom that will take arguments and do an update_archive_drive on them, which is desirable for any drives that are not in one of my customized scripts.

scripts/archival/general_updater.sh

index 918671d8116333c436975ce9fa832b67d3230665..084e26c318c0ae756d823bdda0f88d1069d76cac 100644 (file)
@@ -98,4 +98,13 @@ function update_archive_drive()
   popd
 }
 
+#hmmm: abstractable piece?  the runtime plug at the end of a library script?
+# this block should execute when the script is actually run, rather
+# than when it's just being sourced.
+if [[ $0 =~ .*general_updater\.sh.* ]]; then
+  source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+  exit_on_error "sourcing the feisty meow environment"
+  update_archive_drive "${@}"
+  exit_on_error "updating archive drive at: $*"
+fi