mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-24 08:00:05 -07:00
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
This commit is contained in:
parent
5c6898f143
commit
45f8562c8e
4
kiss
4
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'
|
||||
|
Loading…
Reference in New Issue
Block a user