Skip to content

Commit

Permalink
Let's create the directories as soon as we delete them
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek committed Oct 29, 2024
1 parent 9c08461 commit 9b93a77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prepare_machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ REPORTS_DIR="/var/tmp/daily_reports_dir"
if [ -d "${DAILY_TEST_DIR}" ]; then
rm -rf "${DAILY_TEST_DIR}"
fi
mkdir -p "${DAILY_TEST_DIR}"

if [ -d "${WORK_DIR}" ]; then
rm -rf "${WORK_DIR}"
fi
mkdir -p "${WORK_DIR}"

if [ -d "${LOGS_DIR}" ]; then
rm -rf "${LOGS_DIR}"
fi
mkdir -p "${LOGS_DIR}"

if [ -d "${REPORTS_DIR}" ]; then
rm -rf "${REPORTS_DIR}"
fi
mkdir -p "${REPORTS_DIR}"

0 comments on commit 9b93a77

Please sign in to comment.