Commit 2145b4d9492adadd6e83628a3972131ec9802d27

Authored by Paulo Graça
1 parent ddd6186d3d
Exists in master

PG: add exec path

Showing 1 changed file with 3 additions and 7 deletions   Show diff stats
ingester/prepare.sh
... ... @@ -26,14 +26,10 @@ filename=$(basename $file)
26 26 # Current script dir
27 27 pushd `dirname $0` > /dev/null
28 28 SCRIPTPATH=`pwd`
29   -popd > /dev/null
30   -
31   -
32   -echo "${SCRIPTPATH}"
33   -echo "${SCRIPTPATH}ingester"
34   -if [ -d "${SCRIPTPATH}ingester" ]; then
35   - SCRIPTPATH="${SCRIPTPATH}ingester/"
  29 +if [ -d "${SCRIPTPATH}/ingester" ]; then
  30 + SCRIPTPATH="${SCRIPTPATH}/ingester/"
36 31 fi
  32 +popd > /dev/null
37 33  
38 34  
39 35 mylogger "start extracting DOI from PDF - $file"
... ...