From 2ee3fc1c787ce3185b78d0d429fd07add426ef05 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Wed, 30 May 2018 14:27:13 -0400 Subject: [PATCH] added support for running general updater on own 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/archival/general_updater.sh b/scripts/archival/general_updater.sh index 918671d8..084e26c3 100644 --- a/scripts/archival/general_updater.sh +++ b/scripts/archival/general_updater.sh @@ -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 -- 2.34.1