summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/index.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/index.sh b/lib/index.sh
index e555b4a..57ace59 100644
--- a/lib/index.sh
+++ b/lib/index.sh
@@ -108,7 +108,7 @@ update_feeds()
continue
fi
# For each section:
- for sect_direct in "${archplat_dirent}/"*/; do
+ for sect_dirent in "${archplat_dirent}/"*/; do
if [ ! -d "${sect_dirent}" ]; then
continue
fi
@@ -117,7 +117,7 @@ update_feeds()
sed "${script}")"
# For each package name hash:
for hash_dirent in "${sect_dirent}/"*; do
- if [ ! -d "${hash_dirent}" ]; then
+ if [ ! -f "${hash_dirent}" ]; then
continue
fi
idx="${feed}/.db/${hash_dirent##*/}"