aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-08-31 12:57:14 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-08-31 12:57:14 +0000
commit2dbc4b65d3ef5cc21a897ba127dce7807949edb2 (patch)
tree7392398db0243fea23962a94813d702e10009cc9
parent156583a18433505db39c68888ded944c635a9633 (diff)
downloadcpt-2dbc4b65d3ef5cc21a897ba127dce7807949edb2.tar.gz
kiss: fix KISS_ROOT
FossilOrigin-Name: ad237f29a117919c9f1d9f9370a37b808e49b578a7fb1375c50e86b31f14066b
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
diff --git a/kiss b/kiss
index 5203511..9d9b43f 100755
--- a/kiss
+++ b/kiss
@@ -967,7 +967,7 @@ args() {
# Rerun the script with 'sudo' if the user isn't root.
# Cheeky but 'sudo' can't be used on shell functions themselves.
[ "$(id -u)" = 0 ] || {
- sudo KISS_PATH=$KISS_PATH kiss "$action" "$@"
+ sudo -E kiss "$action" "$@"
return
}
;;