From 45f8562c8e86135675857335617ba69a58eb76e1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 11 Aug 2020 10:45:51 +0300 Subject: [PATCH] kiss: allow KISS_PATH to be unset. This is related to the tarball and default repository location changes which leave KISS_PATH unset /by default/. There's no real reason for the package manager to die here. When no repositories are enabled (or no package is found in KISS_PATH), the package manager uses /var/db/kiss/installed as a fallback. Related to: https://github.com/kisslinux/repo/issues/209 --- kiss | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kiss b/kiss index b71fe10..3b802df 100755 --- a/kiss +++ b/kiss @@ -1497,10 +1497,6 @@ main() { # Globally disable globbing and enable exit-on-error. set -ef - # Die here if the user has no set KISS_PATH. This is a rare occurance as - # the environment variable should always be defined. - [ "$KISS_PATH" ] || die "\$KISS_PATH needs to be set" - # Allow the user to disable colors in output via an environment variable. # Check this once so as to not slow down printing. [ "$KISS_COLOR" = 0 ] || lcol='\033[1;33m' lcol2='\033[1;34m' lclr='\033[m'