summaryrefslogtreecommitdiff
path: root/src/get.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-20 14:32:34 +0000
committerdavidovski <david@davidovski.xyz>2022-02-20 14:32:34 +0000
commit5e64673025351660b27ad61e215ef38a8f033c85 (patch)
tree87f8f11c38a447835e546fc8c579308e88d4ebee /src/get.sh
parent8f02115e50573be0a5c6653f2a4a2bb6d7459911 (diff)
added bootstrapping
Diffstat (limited to 'src/get.sh')
-rwxr-xr-xsrc/get.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/get.sh b/src/get.sh
index 3e23f78..05b2860 100755
--- a/src/get.sh
+++ b/src/get.sh
@@ -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 $#