added support for running general updater on own
[feisty_meow.git] / 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