aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-12-30 18:57:45 +0000
committermerakor <cem@ckyln.com>2020-12-30 18:57:45 +0000
commit2c5fc5d1e40cf039d5a1dfb9d7b2a712c70687c1 (patch)
tree1321c5bc108477d54daa80bb5aa49f26cf4695d8
parentaa37203daeab4bb014ffb228f113530997ed3e9b (diff)
parentfc49c5151bc03cf17dd6414eea5ab4a18220994f (diff)
downloadcpt-2c5fc5d1e40cf039d5a1dfb9d7b2a712c70687c1.tar.gz
Merge branch 'master' into helpers
FossilOrigin-Name: d52dd5e486780b6bf42b3c37fe7e574730d59e9d2c900b27be41de1caf1333ae
-rwxr-xr-xcontrib/cpt-owns1
-rwxr-xr-xsrc/cpt-build2
2 files changed, 1 insertions, 2 deletions
diff --git a/contrib/cpt-owns b/contrib/cpt-owns
index 9e3cccb..494e0fd 100755
--- a/contrib/cpt-owns
+++ b/contrib/cpt-owns
@@ -1,6 +1,5 @@
#!/bin/sh -e
# Check which package owns a file
-. cpt-lib
case "$1" in ''|--help|-h) printf '%s\n' "usage: ${0##*/} [file]" ; exit 0 ; esac
diff --git a/src/cpt-build b/src/cpt-build
index d67f1a6..cb93949 100755
--- a/src/cpt-build
+++ b/src/cpt-build
@@ -10,7 +10,7 @@ parser_definition() {
if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi
-[ "$1" ] || set -- "${PWD##*/}"; export CPT_PATH=${PWD%/*}:$CPT_PATH
+[ "$1" ] || { set -- "${PWD##*/}"; export CPT_PATH=${PWD%/*}:$CPT_PATH ;}
create_cache