From 8997f5677be91c6063633eaa7dd619a3a1eb3244 Mon Sep 17 00:00:00 2001 From: merakor Date: Wed, 29 Apr 2020 12:54:39 +0000 Subject: kiss: use '$0' to call itself with as_root function FossilOrigin-Name: 901546c6c493ca53942ea4d3337799dbad007c3319bd3a12b2422451ad320c83 --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index a813b87..88dbb18 100755 --- a/kiss +++ b/kiss @@ -1297,7 +1297,7 @@ args() { # Rerun the script with 'su' if the user isn't root. # Cheeky but 'su' can't be used on shell functions themselves. [ -z "$1" ] || [ "$uid" = 0 ] || { - as_root kiss "$action" "$@" + as_root "$0" "$action" "$@" return } ;; @@ -1306,7 +1306,7 @@ args() { # Rerun the script with 'su' if the user isn't root. # Cheeky but 'su' can't be used on shell functions themselves. [ "$uid" = 0 ] || { - KISS_FORCE="$KISS_FORCE" as_root kiss "$action" "$@" + KISS_FORCE="$KISS_FORCE" as_root "$0" "$action" "$@" return } ;; -- cgit v1.2.3