QUIET='n'
SIMULATE="n"
-VERSION="0.4"
+VERSION="0.5"
# console colors:
RED=""
error "CSV file '${RED}${CSV_FILE}${NORMAL}' does not exists."
exit 1
fi
+ BASE_DIR=$( dirname "${CSV_FILE}" | xargs readlink --canonicalize )
+ debug "New base dir is now '${BASE_DIR}'."
if [[ ! -x "${CONVERT_SCRIPT}" ]] ; then
error "Conversion script '${CONVERT_SCRIPT}' not found"
fi
debug "Evaluating line ${lnr}: ${line}"
- cd $( dirname "${CSV_FILE}" )
- debug "Current base directory is now: '$( pwd )'."
+ cd "${BASE_DIR}"
+ #debug "Current base directory is now: '$( pwd )'."
directory=$( echo "${line}" | \
awk -F"${FIELD_SEPARATOR}" '{print $1}' | \