diff --git a/hpath-filepath/run-doctests.sh b/hpath-filepath/run-doctests.sh index 305574c..ad714f8 100755 --- a/hpath-filepath/run-doctests.sh +++ b/hpath-filepath/run-doctests.sh @@ -18,4 +18,6 @@ fi set -x -cabal exec doctest -- -ihpath-filepath/src -XOverloadedStrings System.Posix.FilePath +cd "$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)" + +cabal exec doctest -- -isrc -XOverloadedStrings System.Posix.FilePath diff --git a/hpath/run-doctests.sh b/hpath/run-doctests.sh index 48c6640..2b260f8 100755 --- a/hpath/run-doctests.sh +++ b/hpath/run-doctests.sh @@ -18,4 +18,6 @@ fi set -x -cabal exec doctest -- -ihpath/src -XOverloadedStrings -XQuasiQuotes HPath +cd "$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)" + +cabal exec doctest -- -isrc -XOverloadedStrings -XQuasiQuotes HPath