Skip to content

Commit

Permalink
fix create temporary directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Leila011 committed Aug 19, 2024
1 parent 73baa4f commit e7bdd68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agat/agat_sp_add_introns/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ set -e
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

Expand Down

0 comments on commit e7bdd68

Please sign in to comment.