kiss: Don't use pass where unneeded
This commit is contained in:
parent
87e0cfd973
commit
4f4d220056
6
kiss
6
kiss
|
@ -84,11 +84,11 @@ root_cache() {
|
||||||
|
|
||||||
# Validate the password now with a simple 'true' command as we
|
# Validate the password now with a simple 'true' command as we
|
||||||
# don't yet need to elevate permissions.
|
# don't yet need to elevate permissions.
|
||||||
dosu /bin/true
|
dosu /bin/true && have_pw=1
|
||||||
}
|
}
|
||||||
|
|
||||||
dosu() {
|
dosu() {
|
||||||
[ "$pass" ] || root_cache
|
[ "$have_pw" ] || root_cache
|
||||||
|
|
||||||
# Declare this as a function to avoid repeating it twice
|
# Declare this as a function to avoid repeating it twice
|
||||||
# below. Great naming of functions all around.
|
# below. Great naming of functions all around.
|
||||||
|
@ -547,7 +547,7 @@ pkg_build() {
|
||||||
[ $# -gt 1 ] || [ "$pkg_update" ] && {
|
[ $# -gt 1 ] || [ "$pkg_update" ] && {
|
||||||
prompt
|
prompt
|
||||||
|
|
||||||
[ "$pass" ] || root_cache
|
[ "$have_pw" ] || root_cache
|
||||||
}
|
}
|
||||||
|
|
||||||
log "Checking to see if any dependencies have already been built"
|
log "Checking to see if any dependencies have already been built"
|
||||||
|
|
Loading…
Reference in New Issue