diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-29 07:03:23 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-29 07:03:23 +0000 |
commit | eb6bf9a1ff8ac561df58c9328a06b1fd094c3f58 (patch) | |
tree | f7e300072e2f7868dfcfcdf2e0713e1904f59b71 | |
parent | aa9350268d19583c846a8229958f9dd26e5f5aae (diff) | |
download | cpt-eb6bf9a1ff8ac561df58c9328a06b1fd094c3f58.tar.gz |
kiss: Allow user to force kiss to run as root
FossilOrigin-Name: 2abed65e7e11a44385dd4262ca122f9141677eb672cef45227a4e3a0dc813a80
-rwxr-xr-x | kiss | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. |