diff options
-rwxr-xr-x | contrib/cpt-owns | 1 | ||||
-rwxr-xr-x | src/cpt-build | 2 |
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 |