aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-12-30 19:27:17 +0000
committermerakor <cem@ckyln.com>2020-12-30 19:27:17 +0000
commit244eac04121f44be5002a16ae00b3b242d555c06 (patch)
tree7e3f69e28a5aa0957899ba7f7f531765d2b12bf8 /src
parent2c5fc5d1e40cf039d5a1dfb9d7b2a712c70687c1 (diff)
parent9fb2e34d5e9120cdd7dcac9560bc8b383a86877c (diff)
downloadcpt-244eac04121f44be5002a16ae00b3b242d555c06.tar.gz
Merge branch 'master' into helpers
FossilOrigin-Name: cd0b228497476cf383f5051a1ff641f2af93a6d6e5707ed28f5874739526610f
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cpt-install2
-rwxr-xr-xsrc/cpt-remove2
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" "$@"