From: Chris Koeritz Date: Wed, 30 May 2018 18:27:13 +0000 (-0400) Subject: added support for running general updater on own X-Git-Tag: 2.140.114^2~20 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=2ee3fc1c787ce3185b78d0d429fd07add426ef05;p=feisty_meow.git 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. --- 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