cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 96467c3ab020d45bd688129f5d67ccabe88efa25
parent 9ac94168dbb8e2f189a9b5e54561a2bee33eb614
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Wed, 29 Jan 2020 13:30:03 +0200

kiss: helpful message

Diffstat:
Mkiss | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/kiss b/kiss @@ -1385,8 +1385,10 @@ main() { # Prevent the package manager from running as root. The package # manager will elevate permissions where needed. - [ "$(id -u)" != 0 ] || [ "$KISS_ASROOT" ] || - die "kiss must be run as a normal user" + [ "$(id -u)" != 0 ] || [ "$KISS_ASROOT" ] || { + log "kiss must be run as a normal user" "" "!>" + die "(Run with KISS_ASROOT=1 to ignore this warning)" + } # Use the most secure method of sending data over stdin based on # whether or not the 'printf' command is built into the shell.