X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Farchival%2Fgeneral_updater.sh;h=084e26c318c0ae756d823bdda0f88d1069d76cac;hb=2ee3fc1c787ce3185b78d0d429fd07add426ef05;hp=918671d8116333c436975ce9fa832b67d3230665;hpb=a7d1e43ebe9b888621f76fd7b4b89117ed9181d9;p=feisty_meow.git 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