aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-lib.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-lib.in')
-rw-r--r--src/cpt-lib.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index a8fac5c..3d2b2f4 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -1765,7 +1765,9 @@ create_cache() {
# which point to them.
mkdir -p "${tmp_dir:=${CPT_TMPDIR:=$cac_dir/proc}/$pid}"
- # If an argument is given, skip the creation of other cache directories
+ # If an argument is given, skip the creation of other cache directories.
+ # This here makes shellcheck extremely angry, so I am globally disabling
+ # SC2119.
[ "$1" ] || mkdir -p "${mak_dir:=$tmp_dir/build}" \
"${pkg_dir:=$tmp_dir/pkg}" \
"${tar_dir:=$tmp_dir/export}"