summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 12:10:43 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 12:10:43 +0100
commit9e39c7f1ff0d3bfa092107cbf5621711f11268d4 (patch)
treee031815311d78f692296e9d7c79cafd47993152b /src
parent99120e097e75cb2a51a2b230bd587bf20da29556 (diff)
fixed get not finding package versionsv1.5.1
Diffstat (limited to 'src')
-rwxr-xr-xsrc/get.sh4
1 files changed, 2 insertions, 2 deletions
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 () {