From 4f4d2200569283f468ea88d2dc4072d443b41d1b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 27 Jan 2020 23:33:30 +0200 Subject: [PATCH] kiss: Don't use pass where unneeded --- kiss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kiss b/kiss index acd1582..dd3b6bd 100755 --- a/kiss +++ b/kiss @@ -84,11 +84,11 @@ root_cache() { # Validate the password now with a simple 'true' command as we # don't yet need to elevate permissions. - dosu /bin/true + dosu /bin/true && have_pw=1 } dosu() { - [ "$pass" ] || root_cache + [ "$have_pw" ] || root_cache # Declare this as a function to avoid repeating it twice # below. Great naming of functions all around. @@ -547,7 +547,7 @@ pkg_build() { [ $# -gt 1 ] || [ "$pkg_update" ] && { prompt - [ "$pass" ] || root_cache + [ "$have_pw" ] || root_cache } log "Checking to see if any dependencies have already been built"