diff --git a/doc.zih.tu-dresden.de/util/check-spelling-changes.sh b/doc.zih.tu-dresden.de/util/check-spelling-changes.sh index 20bee3e7b6619020887063ad11fcb3b2df12e0ae..9f8cefb63e9cf7ad1c27209ddb95ca2bca54ca9b 100755 --- a/doc.zih.tu-dresden.de/util/check-spelling-changes.sh +++ b/doc.zih.tu-dresden.de/util/check-spelling-changes.sh @@ -5,11 +5,13 @@ set -euo pipefail scriptpath=${BASH_SOURCE[0]} basedir=`dirname "$scriptpath"` basedir=`dirname "$basedir"` -wordlistfile="./$basedir/wordlist.aspell" +wordlistfile=$basedir/wordlist.aspell echo "scriptpath: $scriptpath" echo "basedir: $basedir" echo "wordlistfile: $wordlistfile" +wordlistfile=$(realpath $wordlistfile) +echo "wordlistfile: $wordlistfile" function getNumberOfAspellOutputLines(){ cat - | aspell -p "$wordlistfile" --ignore 2 -l en_US list --mode=markdown | sort -u | wc -l