summaryrefslogtreecommitdiff
path: root/src/sync.sh
diff options
context:
space:
mode:
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"