From 9e39c7f1ff0d3bfa092107cbf5621711f11268d4 Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 12:10:43 +0100 Subject: fixed get not finding package versions --- src/get.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/get.sh') diff --git a/src/get.sh b/src/get.sh index 75571ba..ffa5372 100755 --- a/src/get.sh +++ b/src/get.sh @@ -57,7 +57,7 @@ resolve_deps () { # url checksum size files # get_package_download_info() { - sed 1q ${PACKAGES_DIR}/*/$1 + sed 1q ${PACKAGES_DIR}/$1 } # return if a package is present on the system or not @@ -77,7 +77,7 @@ get_installed_version () { # bad implementation package_exists () { - [ "$(find ${PACKAGES_DIR} -mindepth 2 -name "$1" | wc -l)" != "0" ] + [ "$(find ${PACKAGES_DIR} -mindepth 1 -name "$1" | wc -l)" != "0" ] } download_package () { -- cgit v1.2.1