summaryrefslogtreecommitdiff
path: root/ghc-pkg-shim.sh
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2022-07-16 23:12:12 +0200
committertomsmeding <tom.smeding@gmail.com>2022-07-16 23:12:12 +0200
commit87b4e2b3585a9579d4e93d84a94992c5cec6e322 (patch)
tree27566324862a68d484e891bd391eba26bcce8335 /ghc-pkg-shim.sh
parent200440e8a437d1313e245d3728db6b69c4b03fb3 (diff)
better pwd managementHEADmaster
Diffstat (limited to 'ghc-pkg-shim.sh')
-rwxr-xr-xghc-pkg-shim.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ghc-pkg-shim.sh b/ghc-pkg-shim.sh
index 92d7607..d00ad77 100755
--- a/ghc-pkg-shim.sh
+++ b/ghc-pkg-shim.sh
@@ -6,4 +6,5 @@ for arg; do
args[${#args[@]}]="$arg"
fi
done
-ghc-pkg --package-db /data/data/com.termux/files/home/ghc-boot-pkgdb "${args[@]}"
+thisdir="$(dirname "$0")"
+ghc-pkg --package-db "$thisdir"/ghc-boot-pkgdb "${args[@]}"