Skip to content
Snippets Groups Projects
Commit 07e3a168 authored by Alexis  CRISCUOLO's avatar Alexis CRISCUOLO :black_circle:
Browse files

2.0

parent 42ecf6e7
No related branches found
No related tags found
No related merge requests found
...@@ -20,8 +20,7 @@ ...@@ -20,8 +20,7 @@
# Contact: # # Contact: #
# Alexis Criscuolo alexis.criscuolo@pasteur.fr # # Alexis Criscuolo alexis.criscuolo@pasteur.fr #
# Genome Informatics & Phylogenetics (GIPhy) giphy.pasteur.fr # # Genome Informatics & Phylogenetics (GIPhy) giphy.pasteur.fr #
# Bioinformatics and Biostatistics Hub research.pasteur.fr/en/team/hub-giphy # # Bioinformatics and Biostatistics Hub research.pasteur.fr/team/bioinformatics-and-biostatistics-hub #
# USR 3756 IP CNRS research.pasteur.fr/team/bioinformatics-and-biostatistics-hub #
# Dpt. Biologie Computationnelle research.pasteur.fr/department/computational-biology # # Dpt. Biologie Computationnelle research.pasteur.fr/department/computational-biology #
# Institut Pasteur, Paris, FRANCE research.pasteur.fr # # Institut Pasteur, Paris, FRANCE research.pasteur.fr #
# # # #
...@@ -94,6 +93,18 @@ fi ...@@ -94,6 +93,18 @@ fi
# # # #
############################################################################################################# #############################################################################################################
#############################################################################################################
# #
# ================ #
# = CONSTANTS = #
# ================ #
# #
# = temp directory ======================================================================================= #
# #
TEMP_DIR=${TMPDIR:-/tmp};
# #
#############################################################################################################
############################################################################################################# #############################################################################################################
# # # #
# ================ # # ================ #
...@@ -104,7 +115,7 @@ fi ...@@ -104,7 +115,7 @@ fi
# returns a random file name within /tmp/ # # returns a random file name within /tmp/ #
# # # #
randomfile() { randomfile() {
rdmf=/tmp/$RANDOM; while [ -e $rdmf ]; do rdmf=/tmp/$RANDOM ; done rdmf=$TEMP_DIR/$RANDOM; while [ -e $rdmf ]; do rdmf=$TEMP_DIR/$RANDOM ; done
echo $rdmf ; echo $rdmf ;
} }
# # # #
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment