1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 16:40:07 -07:00

kiss: clean up

This commit is contained in:
Dylan Araps 2019-09-09 11:05:11 +03:00
parent c03f220dec
commit b8995c56b5

7
kiss
View File

@ -98,15 +98,14 @@ pkg_list() {
# Loop over each version file and warn if one doesn't exist.
# Also warn if a package is missing its version file.
for pkg; do
[ -d "$pkg" ] || {
if [ ! -d "$pkg" ]; then
log "Package '$pkg' is not installed"
return 1
}
[ -f "$pkg/version" ] || {
elif [ ! -f "$pkg/version" ]; then
log "[$pkg] Warning, package has no version file"
continue
}
fi
read -r version release < "$pkg/version" &&
printf '%s\n' "$pkg $version-$release"