From 5e64673025351660b27ad61e215ef38a8f033c85 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 20 Feb 2022 14:32:34 +0000 Subject: added bootstrapping --- src/sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sync.sh') 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" -- cgit v1.2.1