From 9e7e6c466e0dab3a4bf3729fd97428dc2657746e Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 6 Jun 2022 21:19:39 +0000 Subject: fixed install script --- src/get.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/get.sh') 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 $@ -- cgit v1.2.1