cpt

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

commit 1210dae5ddcc7d68cc4bbf5f9bc9fb80dba4d9be
parent 0e2a45220362eeead931c9a7f2d41e5d38914630
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Wed, 29 Jan 2020 09:03:23 +0200

kiss: Allow user to force kiss to run as root

Diffstat:
Mkiss | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/kiss b/kiss @@ -1352,7 +1352,7 @@ args() { ;; v|version|-v|--version) - log kiss 1.0.0 + log kiss 1.0.1 ;; h|help|-h|--help|'') @@ -1379,7 +1379,8 @@ main() { # Prevent the package manager from running as root. The package # manager will elevate permissions where needed. - [ "$(id -u)" != 0 ] || die "kiss must be run as a normal user" + [ "$(id -u)" != 0 ] || [ "$KISS_ASROOT" ] || + die "kiss must be run as a normal user" # Use the most secure method of sending data over stdin based on # whether or not the 'printf' command is built into the shell.