summaryrefslogtreecommitdiff
path: root/src/sync.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/sync.sh
parent8f02115e50573be0a5c6653f2a4a2bb6d7459911 (diff)
added bootstrapping
Diffstat (limited to 'src/sync.sh')
-rwxr-xr-xsrc/sync.sh2
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"