From 87b4e2b3585a9579d4e93d84a94992c5cec6e322 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 16 Jul 2022 23:12:12 +0200 Subject: better pwd management --- ghc-pkg-shim.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ghc-pkg-shim.sh') 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[@]}" -- cgit v1.2.3-70-g09d2