diff options
author | merakor <cem@ckyln.com> | 2021-07-30 13:55:15 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-07-30 13:55:15 +0000 |
commit | b35496cddcb8306688bbe476381396cf9c7fc598 (patch) | |
tree | 9cf2b771d7f880cbcaaba439a87a506f14338e5a /src | |
parent | f70e7cc170ca3455140ac8523edd912fce4d4ca3 (diff) | |
download | cpt-b35496cddcb8306688bbe476381396cf9c7fc598.tar.gz |
cpt-checksum: fix crux-like usage
FossilOrigin-Name: a190e88fc2eac4b604b0fa4204132b3a65e1295417a7d0e4a1fd49cb8a4d4ed0
Diffstat (limited to 'src')
-rwxr-xr-x | src/cpt-checksum | 1 |
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 |