added BASEPATH to allow for execution via symlink
This commit is contained in:
+3
-2
@@ -4,7 +4,8 @@
|
||||
##############################################################################
|
||||
|
||||
# Import required scripts
|
||||
. "`dirname $0`/src/config.sh"
|
||||
BASEPATH="$(dirname $(readlink -f $0))"
|
||||
. "$BASEPATH/src/config.sh"
|
||||
|
||||
# Set variables corresponding to the input parameters
|
||||
ARGUMENTS="$@"
|
||||
@@ -128,7 +129,7 @@ FILE_OUTPUT_PDFA="`absolutePath "$2"`"
|
||||
|
||||
|
||||
# set script path as working directory
|
||||
cd "`dirname $0`"
|
||||
cd "$BASEPATH"
|
||||
|
||||
[ $VERBOSITY -ge $LOG_DEBUG ] && echo "$TOOLNAME version: $VERSION"
|
||||
[ $VERBOSITY -ge $LOG_DEBUG ] && echo "Arguments: $ARGUMENTS"
|
||||
|
||||
Reference in New Issue
Block a user