From: Chris Koeritz Date: Thu, 24 May 2018 00:22:43 +0000 (-0400) Subject: added check that releases directory exists X-Git-Tag: 2.140.113^2~11 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=69fd603d5774adbf6f107a3523a0bc498f8d33e6;p=feisty_meow.git added check that releases directory exists --- 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