summaryrefslogtreecommitdiff
path: root/src/get.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/get.sh')
-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 () {