aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss5
1 files changed, 5 insertions, 0 deletions
diff --git a/kiss b/kiss
index 1280ea8..8181392 100755
--- a/kiss
+++ b/kiss
@@ -74,6 +74,11 @@ root_cache() {
#
# This change was needed as the existing behavior was not ideal
# in any way and needed to be fixed.
+
+ # Pointless running this function if the user has chosen to run
+ # the package manager as root anyway.
+ [ "$(id -u)" != 0 ] || return 0
+
printf 'Password: '
# Disable echoing to the terminal while the password is inputted