Commit 3e247276af4509cb7636070a1b10666d70cd2620

Authored by Paulo Graça
1 parent 43f5c274c4
Exists in master

PG: fix bug for temp folder name based on doi with multiple slashes

Showing 1 changed file with 1 additions and 4 deletions   Show diff stats
ingester/prepare.sh
... ... @@ -40,10 +40,7 @@ if [ -z "$DOI" ]; then
40 40 exit
41 41 fi
42 42  
43   -DOI_prefix=$(echo $DOI|cut -d'/' -f1)
44   -DOI_suffix=$(echo $DOI|cut -d'/' -f2)
45   -
46   -DOI_FILE=$DOI_prefix.$DOI_suffix
  43 +DOI_FILE=echo "${DOI}"|sed "s|/|.|g"
47 44  
48 45  
49 46 # download json file
... ...