kiss-new: Argument handling

This commit is contained in:
Dylan Araps 2019-06-29 01:35:29 +03:00
parent f2804c2b66
commit 0e6f0c701a

View File

@ -77,7 +77,7 @@ pkg_list() {
[ "$1" ] || set -- * [ "$1" ] || set -- *
# Loop over each version file and warn if one doesn't exist. # Loop over each version file and warn if one doesn't exist.
# Supress errors from 'read' as we print our own message. # Also warn if a package is missing its version file.
for pkg; do for pkg; do
[ -d "$pkg" ] || { [ -d "$pkg" ] || {
log "Package '$pkg' is not installed." log "Package '$pkg' is not installed."