summaryrefslogtreecommitdiff
path: root/src/get.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/get.sh')
-rwxr-xr-xsrc/get.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/get.sh b/src/get.sh
index 4a15bd7..24e397c 100755
--- a/src/get.sh
+++ b/src/get.sh
@@ -50,7 +50,7 @@ resolve_deps () {
${QUIET} || hbar -T "${CHECKMARK} resolving dependencies" $i $((i + $#))
done
- ${QUIET} || hbar -t ${HBAR_COMPLETE} -T "${CHECKMARK} resolved dependencies" $i $((i + $#))
+ ${QUIET} || hbar -t ${HBAR_COMPLETE} -T "${CHECKMARK} resolved dependencies" $i $((i + $#))
echo ${deps} > $out
}
@@ -78,9 +78,8 @@ get_installed_version () {
cat $file
}
-# bad implementation
package_exists () {
- [ "$(find ${PACKAGES_DIR} -mindepth 1 -name "$1" | wc -l)" != "0" ]
+ [ -f "${PACKAGES_DIR}/$1" ]
}
download_package () {
@@ -161,7 +160,7 @@ get () {
[ "$#" = "0" ] && return 0
$DO_SYNC && sync
-
+
touch $out
resolve_deps $out $@