Skip to content

Commit

Permalink
Add $MASH_DIR_OLD and $MASH_TRACKER_DIR folder
Browse files Browse the repository at this point in the history
Ensure the creation of the folders before moving the collaterals into
the folders.

Signed-off-by: candrew <[email protected]>
  • Loading branch information
clefrks committed Oct 25, 2019
1 parent 4b06ff5 commit fa8efd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions koji-setup/mash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ if [[ "$MASH_BUILD_NUM" -ne "$KOJI_BUILD_NUM" ]]; then
mkdir -p "$MASH_DIR_NEW"
create_dist_repos "$MASH_TRACKER_DIR" "$MASH_DIR_NEW"
if [[ -e "$MASH_TRACKER_DIR/$KOJI_TAG" ]]; then
mkdir -p "$MASH_DIR_OLD"
mv "$MASH_TRACKER_DIR/$KOJI_TAG" "$MASH_DIR_OLD/$KOJI_TAG"
fi
mkdir -p "$MASH_TRACKER_DIR"
mv "$MASH_DIR_NEW/$KOJI_TAG" "$MASH_TRACKER_DIR"
rm -rf "$MASH_DIR_OLD"
rm -rf "$MASH_DIR_NEW"
Expand Down

0 comments on commit fa8efd4

Please sign in to comment.