diff options
author | merakor <cem@ckyln.com> | 2020-12-30 19:26:52 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-12-30 19:26:52 +0000 |
commit | 9fb2e34d5e9120cdd7dcac9560bc8b383a86877c (patch) | |
tree | f4af947a3e0d9bd463439532644edb885cb14de0 | |
parent | fc49c5151bc03cf17dd6414eea5ab4a18220994f (diff) | |
download | cpt-9fb2e34d5e9120cdd7dcac9560bc8b383a86877c.tar.gz |
cpt-install|cpt-remove: fix faulty CPT_PATH
FossilOrigin-Name: 47fe062d11c48e1cc51d6a2a4d6e3e4d54524e27281dc18ef69ec71f3bd9bcb4
-rwxr-xr-x | src/cpt-install | 2 | ||||
-rwxr-xr-x | src/cpt-remove | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cpt-install b/src/cpt-install index b046e02..aab70ea 100755 --- a/src/cpt-install +++ b/src/cpt-install @@ -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 ;} [ -w "$CPT_ROOT/" ] || [ "$uid" = 0 ] || { as_root "$0" "$@" diff --git a/src/cpt-remove b/src/cpt-remove index bcf5047..cce3739 100755 --- a/src/cpt-remove +++ b/src/cpt-remove @@ -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 ;} [ -w "$CPT_ROOT/" ] || [ "$uid" = 0 ] || { as_root "$0" "$@" |