From face09b0340dc9e1df7bb35a56070880e12759fe Mon Sep 17 00:00:00 2001 From: Leila011 Date: Mon, 19 Aug 2024 10:12:58 +0200 Subject: [PATCH] update clean up on exit function --- src/agat/agat_sp_merge_annotations/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agat/agat_sp_merge_annotations/test.sh b/src/agat/agat_sp_merge_annotations/test.sh index 00ff1997..f8282f54 100644 --- a/src/agat/agat_sp_merge_annotations/test.sh +++ b/src/agat/agat_sp_merge_annotations/test.sh @@ -8,7 +8,7 @@ test_dir="${meta_resources_dir}/test_data" # create temporary directory and clean up on exit TMPDIR=$(mktemp --tmpdir "$meta_temp_dir") function clean_up { - [[ -d "$TMPDIR" ]] && rm -r "$TMPDIR" + rm -rf "$TMPDIR" } trap clean_up EXIT