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/sync.sh | |
parent | 8f02115e50573be0a5c6653f2a4a2bb6d7459911 (diff) |
added bootstrapping
Diffstat (limited to 'src/sync.sh')
-rwxr-xr-x | src/sync.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync.sh b/src/sync.sh index 3d1c7d1..265c374 100755 --- a/src/sync.sh +++ b/src/sync.sh @@ -33,7 +33,7 @@ list_source () { ${VERBOSE} && printf "${LIGHT_BLACK}Indexing $repo from $full_url\n" local status=$(download_file $tmp_file $full_url) - if [ "$status" = "200" ] || [ "$status" = "000" ]; then + if [ "$status" = "200" ] || [ "$status" = "000" ] && [ -f $tmp_file ]; then while IFS= read -r line; do parse_line $repo $repo_url $line done < "$tmp_file" |