diff options
author | merakor <cem@ckyln.com> | 2021-01-06 12:47:53 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-01-06 12:47:53 +0000 |
commit | 662a9bfee577c8a65b80bc5dd617c22f0d142108 (patch) | |
tree | 4a6f77885a9fa25214f0f1f6f6fa2792f27e27cb /lib | |
parent | e4520245639f46fd02efbc9af2457de9cd1099e2 (diff) | |
download | cpt-662a9bfee577c8a65b80bc5dd617c22f0d142108.tar.gz |
lib: update
FossilOrigin-Name: 65713a74a26750b92674c34414b667246ad11a0e006063847828a987e6a2f462
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cpt-pkg | 1 | ||||
-rw-r--r-- | lib/cpt.in | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/cpt-pkg b/lib/cpt-pkg index bfaa428..a2058ac 100644 --- a/lib/cpt-pkg +++ b/lib/cpt-pkg @@ -1,5 +1,4 @@ # Package functions -# shellcheck source=lib-cpt run_hook() { # Store the CPT_HOOK variable so that we can revert it if it is changed. @@ -77,7 +77,7 @@ _readlinkf() { # Set the library directory if unset, assuming that it shares the same # prefix with the tool. - [ "$CPT_LIBDIR" ] || CPT_LIBDIR=$(_readlinkf "${0%/*}/../lib/cpt/") + [ "$CPT_LIBDIR" ] || CPT_LIBDIR=$(_readlinkf "$(command -v cpt-lib)") CPT_LIBDIR=${CPT_LIBDIR%/*} # If a parser definition exists, let's run it ourselves. This makes sure we # get the variables as soon as possible. |