diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-27 21:33:30 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-27 21:33:30 +0000 |
commit | 38cc93f53096d38cc02f2b83e5635ff8903e2ce3 (patch) | |
tree | e418b3b59affe9488cd7f87ad3f0c294fafdba8d | |
parent | 2f002b1400b747d1348746a1033d62d7a1207da1 (diff) | |
download | cpt-38cc93f53096d38cc02f2b83e5635ff8903e2ce3.tar.gz |
kiss: Don't use pass where unneeded
FossilOrigin-Name: 9f3d7e2705c6164090445ebac7a8aad808a7b9c877df12fcb0347d60ace48b85
-rwxr-xr-x | kiss | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" |