From 3d11a77cd03303f25401b5360d7c43a6f673af71 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 2 Jul 2021 13:15:47 +0000 Subject: [PATCH] kiss: fix pkg_lint - unsquish - use variable with pkg_find so die works. --- kiss | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/kiss b/kiss index 389e519..d9d9754 100755 --- a/kiss +++ b/kiss @@ -138,12 +138,20 @@ sh256() { pkg_lint() { log "$1" "Checking repository files" - cd "$(pkg_find "$1")" - read -r _ release 2>/dev/null < version || die "Version file not found" + _r=$(pkg_find "$1") + cd "$_r" - [ "$release" ] || die "$1" "Release field not found in version file" - [ -x build ] || die "$1" "Build file not found or not executable" - [ -f sources ] || war "$1" "Sources file not found" + read -r _ release 2>/dev/null < version || + die "Version file not found" + + [ "$release" ] || + die "$1" "Release field not found in version file" + + [ -x build ] || + die "$1" "Build file not found or not executable" + + [ -f sources ] || + war "$1" "Sources file not found" } pkg_find() {