kiss: better variable name

This commit is contained in:
Dylan Araps 2019-09-13 21:09:25 +03:00
parent 03a2e99746
commit 5d7b55fa72
1 changed files with 5 additions and 5 deletions

10
kiss
View File

@ -347,7 +347,7 @@ pkg_build() {
# Store the explicit packages so we can handle them differently # Store the explicit packages so we can handle them differently
# below. Dependencies are automatically installed but packages # below. Dependencies are automatically installed but packages
# passed to KISS aren't. # passed to KISS aren't.
explicit_packages=" $* " explicit=" $* "
# Set the resolved dependency list as the function's arguments. # Set the resolved dependency list as the function's arguments.
set -- $deps set -- $deps
@ -356,7 +356,7 @@ pkg_build() {
# whether or not they are installed. Ensure that all explicit packages # whether or not they are installed. Ensure that all explicit packages
# are included and ensure that all installed packages are excluded. # are included and ensure that all installed packages are excluded.
for pkg; do for pkg; do
case $explicit_packages in case $explicit in
*" $pkg "*) ;; *" $pkg "*) ;;
*) pkg_list "$pkg" >/dev/null && continue ;; *) pkg_list "$pkg" >/dev/null && continue ;;
esac esac
@ -387,7 +387,7 @@ pkg_build() {
for pkg; do for pkg; do
# Don't check for a pre-built package if it was passed to KISS # Don't check for a pre-built package if it was passed to KISS
# directly. # directly.
case $explicit_packages in case $explicit in
*" $pkg "*) *" $pkg "*)
shift shift
set -- "$@" "$pkg" set -- "$@" "$pkg"
@ -471,7 +471,7 @@ pkg_build() {
# Install only dependencies of passed packages. # Install only dependencies of passed packages.
# Skip this check if this is a package update. # Skip this check if this is a package update.
case $explicit_packages in case $explicit in
*" $pkg "*) [ "$pkg_update" ] || continue *" $pkg "*) [ "$pkg_update" ] || continue
esac esac
@ -485,7 +485,7 @@ pkg_build() {
log "Successfully built package(s)" log "Successfully built package(s)"
# Turn the explicit packages into a 'list'. # Turn the explicit packages into a 'list'.
set -- $explicit_packages set -- $explicit
# Only ask for confirmation if more than one package needs to be installed. # Only ask for confirmation if more than one package needs to be installed.
[ $# -gt 1 ] && { [ $# -gt 1 ] && {