aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkiss4
1 files 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
}
;;