aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-checksum
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-07-30 13:55:15 +0000
committermerakor <cem@ckyln.com>2021-07-30 13:55:15 +0000
commitb35496cddcb8306688bbe476381396cf9c7fc598 (patch)
tree9cf2b771d7f880cbcaaba439a87a506f14338e5a /src/cpt-checksum
parentf70e7cc170ca3455140ac8523edd912fce4d4ca3 (diff)
downloadcpt-b35496cddcb8306688bbe476381396cf9c7fc598.tar.gz
cpt-checksum: fix crux-like usage
FossilOrigin-Name: a190e88fc2eac4b604b0fa4204132b3a65e1295417a7d0e4a1fd49cb8a4d4ed0
Diffstat (limited to 'src/cpt-checksum')
-rwxr-xr-xsrc/cpt-checksum1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpt-checksum b/src/cpt-checksum
index 2de15a8..488ab87 100755
--- a/src/cpt-checksum
+++ b/src/cpt-checksum
@@ -10,6 +10,7 @@ parser_definition() {
if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi
+[ "$1" ] || { set -- "${PWD##*/}"; CPT_PATH=${PWD%/*}:$CPT_PATH ;}
create_cache
for pkg; do pkg_lint "$pkg" c; done