aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-09-08 18:49:03 +0000
committermerakor <cem@ckyln.com>2021-09-08 18:49:03 +0000
commit8a9c45e31ab6957f8e07873448b7f138f0774ed1 (patch)
treeec4e5b28fc4d77be01a1a8ae3764f4b80a706c04
parent2719cc02bd6c68f0cec7f85fce1a45b34830f981 (diff)
downloadcpt-8a9c45e31ab6957f8e07873448b7f138f0774ed1.tar.gz
main(): fix variable declaration
FossilOrigin-Name: b245d7447ca4e01a66d827e956892ad6304144382d0654be33aa9732a75b61ee
-rw-r--r--src/cpt-lib.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index 83f7012..ce4d47f 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -2167,7 +2167,7 @@ create_cache() {
# shell hack, but it made the variables editable outside of the package
# manager, but we don't actually want that. Variables that are lower case
# aren't meant to be interacted or set by the user.
- cac_dir=${CPT_CACHE:=$XDG_CACHE_HOME:-${HOME:?}/.cache}/cpt
+ cac_dir=${CPT_CACHE:=${XDG_CACHE_HOME:-${HOME:?}/.cache}}/cpt
src_dir=$cac_dir/sources
log_dir=$cac_dir/logs
bin_dir=$cac_dir/bin