Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 93d8cde

Browse files
committed
Merge branch '219-make-unique-temporary-directory-name' into 'master'
Make a unique name for temporary artifacts directory Closes #219 See merge request postgres-ai-team/nancy!205
2 parents ec2dae7 + fe4a607 commit 93d8cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nancy_run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ function check_cli_parameters() {
353353
if [[ ! -d $TMP_PATH ]]; then
354354
mkdir $TMP_PATH
355355
fi
356-
TMP_PATH="$TMP_PATH/nancy_run_"$(date "+%Y%m%d_%H%M%S")
356+
TMP_PATH=$(mktemp -u -d "${TMP_PATH}"/nancy_run_"$(date '+%Y%m%d_%H%M%S')_XXXXX")
357357
if [[ ! -d $TMP_PATH ]]; then
358358
mkdir $TMP_PATH
359359
fi

0 commit comments

Comments
 (0)