diff options
author | merakor <cem@ckyln.com> | 2021-01-11 14:23:44 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-01-11 14:23:44 +0000 |
commit | 35eae466d69f619d3e2c8f931dcb74225d817b5f (patch) | |
tree | d3d03e7ea8c9d78642464e81eadbcb58d46e6ca7 /contrib | |
parent | fce5cc6898a4aaad7d5e2cff32562e6ac7b08489 (diff) | |
download | cpt-35eae466d69f619d3e2c8f931dcb74225d817b5f.tar.gz |
cpt-cat: fix using alternate root directories
FossilOrigin-Name: a3feee4df8569e69b9b3581078ac9771e18f10af48476f16ae1cf798f07440f5
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/cpt-cat | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/cpt-cat b/contrib/cpt-cat index be0ab56..b8dc34b 100755 --- a/contrib/cpt-cat +++ b/contrib/cpt-cat @@ -17,7 +17,7 @@ cpt-list "$pkg" >/dev/null [ "$1" ] || set -- build depends sources version for file; do - [ -f "/var/db/cpt/installed/$pkg/$file" ] || continue + [ -f "$CPT_ROOT/var/db/cpt/installed/$pkg/$file" ] || continue printf '\033[1m%s:\033[m\n' "$file" >&2 - cat "/var/db/cpt/installed/$pkg/$file" + cat "$CPT_ROOT/var/db/cpt/installed/$pkg/$file" done |