Hi Rowland
I have found the problem but was unable to solve the issue. The code as it is runs only if installed and not if run from the folder without installation. Can you try uninstalling it and running it from a folder? Which shell are you using? I am using bash which may be the cause of my problems.
So, the problem (at least with bash) is in the if function in two files. For example, in rawprepro you have:
# location of batch_convert
if [ /usr/local/bin/batch_convert ]; then
BATCH=$(readlink -f /usr/local/bin/batch_convert); else
BATCH=$(readlink -f pwd/batch_convert)
fi
The if syntax is not correct and will always evaluate to true. The corrected version should be (note the bold parts):
# location of batch_convert
if [ -e /usr/local/bin/batch_convert ]; then
BATCH=$(readlink -f /usr/local/bin/batch_convert); else
BATCH=$(readlink -f $PWD/batch_convert)
fi
Note also that pwd did not work for me but $PWD does.
Similarly batch_convert has the same issue in two places.
However, this does not solve the problem as $PWD in batch_convert returns the project folder and not the folder in which rawprepro scripts are (rawprepro changes directory before calling batch_convert).
Does this make sense?
|