cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit b8995c56b5c2c29c3f27ae68b4b2823202b1ce63
parent c03f220dec4d2305de08598f2c1f3de128086f48
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Mon,  9 Sep 2019 11:05:11 +0300

kiss: clean up

Diffstat:
Mkiss | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/kiss b/kiss @@ -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"