diff options
author | davidovski <david@davidovski.xyz> | 2022-06-06 21:19:39 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-06 21:19:39 +0000 |
commit | 9e7e6c466e0dab3a4bf3729fd97428dc2657746e (patch) | |
tree | ccaa4790edce068e1874f93a1b9fd069fae61202 /src/get.sh | |
parent | dd8004ccbf58b546f48205d2878d9101bbfcaadc (diff) |
fixed install scriptv1.5.6
Diffstat (limited to 'src/get.sh')
-rwxr-xr-x | src/get.sh | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 $@ |