From 2573d51bcfdf34b55f86c8f5fae5bcdefd8e2261 Mon Sep 17 00:00:00 2001 From: merakor Date: Sun, 16 Aug 2020 23:09:23 +0000 Subject: cpt-lib: don't die if CPT_PATH is unset. FossilOrigin-Name: 6f831c0ffb5ff33a4a6bf6b177fe5a1ca55cd5fd44718bda71f929d0d6502688 --- src/cpt-lib | 4 ---- 1 file changed, 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 -- cgit v1.2.3