kiss: helpful message

This commit is contained in:
Dylan Araps 2020-01-29 13:30:03 +02:00
parent 9ac94168db
commit 96467c3ab0
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 4 additions and 2 deletions

6
kiss
View File

@ -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.