diff options
author | davidovski <david@davidovski.xyz> | 2022-02-20 14:32:34 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-20 14:32:34 +0000 |
commit | 5e64673025351660b27ad61e215ef38a8f033c85 (patch) | |
tree | 87f8f11c38a447835e546fc8c579308e88d4ebee /src/get.sh | |
parent | 8f02115e50573be0a5c6653f2a4a2bb6d7459911 (diff) |
added bootstrapping
Diffstat (limited to 'src/get.sh')
-rwxr-xr-x | src/get.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -28,7 +28,7 @@ resolve_deps () { for dep in $(list_deps $package); do # if not already checked - if echo ${deps} | grep -qv "\b$dep\b"; then + if echo $@ | grep -qv "\b$dep\b"; then set -- $@ $dep fi done @@ -78,7 +78,7 @@ download_packages () { local output="${out_dir}/${checksum}.${package}.xipkg" local output_info="${output}.info" - if ${UNSAFE} || validate_checksum $output $checksum; then + if validate_checksum $output $checksum; then ${VERBOSE} && printf "${LIGHT_BLACK}skipping download for %s already exists with checksum %s${RESET}\n" $package $checksum else ${VERBOSE} && printf "${LIGHT_BLACK}downloading $package from $url\n" $package $checksum @@ -94,9 +94,9 @@ download_packages () { wait_for_download $total_download ${outputs} echo + set -- $outputs if ! ${UNSAFE}; then local i=0 - set -- $outputs for pkg_file in ${outputs}; do ${QUIET} || hbar -T "${LARGE_CIRCLE} validating downloads..." $i $# |