diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 12:10:43 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 12:10:43 +0100 |
commit | 9e39c7f1ff0d3bfa092107cbf5621711f11268d4 (patch) | |
tree | e031815311d78f692296e9d7c79cafd47993152b /src/get.sh | |
parent | 99120e097e75cb2a51a2b230bd587bf20da29556 (diff) |
fixed get not finding package versionsv1.5.1
Diffstat (limited to 'src/get.sh')
-rwxr-xr-x | src/get.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 () { |