From 69fd603d5774adbf6f107a3523a0bc498f8d33e6 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Wed, 23 May 2018 20:22:43 -0400 Subject: [PATCH] added check that releases directory exists --- scripts/archival/pack_feisty_meow.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/archival/pack_feisty_meow.sh b/scripts/archival/pack_feisty_meow.sh index 1596fd44..4e646600 100644 --- a/scripts/archival/pack_feisty_meow.sh +++ b/scripts/archival/pack_feisty_meow.sh @@ -2,9 +2,20 @@ source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" +# location where we intend to store these packages. +RELEASE_PATH="$WEBBED_SITES/feistymeow.org/releases" + +# check that we can see the release path. +if [ ! -d "$RELEASE_PATH" ]; then + echo "The release path does not exist: $RELEASE_PATH" + exit 1 +fi + TEMPO_FILE="$(mktemp "$TMP/zz_feistypack.XXXXXX")" # specify where we keep the file until we're ready to move it. +log_feisty_meow_event "packing feisty meow in temporary file $TEMPO_FILE" + # shortcut for the lengthy exclude parameter. # note that this only works on file patterns apparently, like *.hosed, # instead of working with general patterns (like */code_guide/*). @@ -42,7 +53,7 @@ $base_dir # now move the newest version into its resting place. this prepares the # feisty_meow package for uploading. -mv -v $TEMPO_FILE $WEBBED_SITES/feistymeow.org/releases/feisty_meow_codebase_$(date_stringer).tar.gz +mv -v $TEMPO_FILE "$RELEASE_PATH/feisty_meow_codebase_$(date_stringer).tar.gz" popd -- 2.34.1