aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-08-16 23:09:23 +0000
committermerakor <cem@ckyln.com>2020-08-16 23:09:23 +0000
commit2573d51bcfdf34b55f86c8f5fae5bcdefd8e2261 (patch)
treec790e08768528f51c8dff867953a64b96eeafb32
parent66332c9ce08bfae561bc8ea7a8bc13e616c9d41d (diff)
downloadcpt-2573d51bcfdf34b55f86c8f5fae5bcdefd8e2261.tar.gz
cpt-lib: don't die if CPT_PATH is unset.
FossilOrigin-Name: 6f831c0ffb5ff33a4a6bf6b177fe5a1ca55cd5fd44718bda71f929d0d6502688
-rw-r--r--src/cpt-lib4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cpt-lib b/src/cpt-lib
index 91a0ce1..a975a64 100644
--- a/src/cpt-lib
+++ b/src/cpt-lib
@@ -1477,10 +1477,6 @@ main() {
"${log_dir:=$cac_dir/logs}" \
"${bin_dir:=$cac_dir/bin}"
- # Die here if the user has no set CPT_PATH. This is a rare occurance
- # as the environment variable should always be defined.
- [ "$CPT_PATH" ] || die "\$CPT_PATH needs to be set"
-
# Set the location to the repository and package database.
pkg_db=var/db/cpt/installed