diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-29 11:30:03 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-29 11:30:03 +0000 |
commit | b13665f2994dc1ffd653d986ae87174344eaed75 (patch) | |
tree | c554d181598717b0040b8d82e435f37706c7ab1e | |
parent | 0ac2a75965eba0bd6e778868c9efba2a3d696802 (diff) | |
download | cpt-b13665f2994dc1ffd653d986ae87174344eaed75.tar.gz |
kiss: helpful message
FossilOrigin-Name: c75eeb21333f981d1ca60a47d514b07e8275befa2ba4ea56b013108fef49c757
-rwxr-xr-x | kiss | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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. |