From e8818454cfa1f66b370a752c261cb239669ffaa6 Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Tue, 12 Nov 2024 16:28:52 -0500 Subject: [PATCH] made the dir name a variable a slight concession to reusability --- scripts/customize/fred/scripts/jobby/archie_grabber.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/customize/fred/scripts/jobby/archie_grabber.sh b/scripts/customize/fred/scripts/jobby/archie_grabber.sh index 5e3c5ab6..f58b54a1 100644 --- a/scripts/customize/fred/scripts/jobby/archie_grabber.sh +++ b/scripts/customize/fred/scripts/jobby/archie_grabber.sh @@ -5,6 +5,9 @@ source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" +# the archive directories will be known by their odd naming, which starts with the below. +ARCHIVE_DIR_PREFIX="z_arch" + function grab_archies() { local domain_piece="$1"; shift @@ -12,10 +15,10 @@ function grab_archies() for host in $host_list; do mkdir -p ${host}.${domain_piece} pushd ${host}.${domain_piece} - netcp ${host}.${domain_piece}:z_arch* . + netcp ${host}.${domain_piece}:${ARCHIVE_DIR_PREFIX}* . retval=$? if [ $retval -ne 0 ]; then - echo "Error $retval returned from copying z_arch* from ${host}.${domain_piece}" + echo "Error $retval returned from copying ${ARCHIVE_DIR_PREFIX}* from ${host}.${domain_piece}" popd continue fi -- 2.34.1