#!/bin/bash
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [[ "$OSTYPE" == "msys" ]]; then
    mathjax="$(dirname "${script_dir}")/Library/lib/mathjax/es5/"
else
    mathjax="$(dirname "${script_dir}")/lib/mathjax/es5/"
fi

if [[ -d "$mathjax" ]]; then
    echo "$mathjax"
else
    echo -e "Error: $mathjax dir was not found"
    exit 1
fi
