From b13665f2994dc1ffd653d986ae87174344eaed75 Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Wed, 29 Jan 2020 11:30:03 +0000 Subject: kiss: helpful message FossilOrigin-Name: c75eeb21333f981d1ca60a47d514b07e8275befa2ba4ea56b013108fef49c757 --- kiss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index 5758ecb..4808304 100755 --- 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. -- cgit v1.2.3