From 30fd75ef1addf983c82f3d9efd7bd505b7805290 Mon Sep 17 00:00:00 2001 From: Leila011 Date: Mon, 19 Aug 2024 13:38:15 +0200 Subject: [PATCH] fix create temporary directory --- src/agat/agat_convert_genscan2gff/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agat/agat_convert_genscan2gff/test.sh b/src/agat/agat_convert_genscan2gff/test.sh index 7f818b06..a4eda31f 100644 --- a/src/agat/agat_convert_genscan2gff/test.sh +++ b/src/agat/agat_convert_genscan2gff/test.sh @@ -8,9 +8,9 @@ set -eo pipefail test_dir="${meta_resources_dir}/test_data" # create temporary directory and clean up on exit -TMPDIR=$(mktemp -d --tmpdir "$meta_temp_dir") +TMPDIR=$(mktemp -d "$meta_temp_dir/$meta_functionality_name-XXXXXX") function clean_up { - rm -rf "$TMPDIR" + [[ -d "$TMPDIR" ]] && rm -rf "$TMPDIR" } trap clean_up EXIT