summaryrefslogtreecommitdiffstats
path: root/src/index.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-13 01:35:01 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-13 01:35:01 (EDT)
commitdad62a66102a5f35968c694200cad3a20da14dce (patch)
tree95116a7dc61fbe6b0d34abefcd1baf849dfaac85 /src/index.sh
parent58daff309a0b0c88bcf583ff971412667b88b83b (diff)
Add "|| :" after try_rmdir() calls
Diffstat (limited to 'src/index.sh')
-rw-r--r--src/index.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index.sh b/src/index.sh
index 6246f85..df6d1ff 100644
--- a/src/index.sh
+++ b/src/index.sh
@@ -103,7 +103,7 @@ feed_remove_package()
feed_hash_idx="${base_dir}/feeds/${chan}/${dist}/${arch}/${plat}"
feed_hash_idx="${feed_hash_idx}/${sect}/.db/${pkg_hash}"
rm -f "${feed_hash_idx}/info/${pkg}.control"
- try_rmdir "${feed_hash_idx}/info"
+ try_rmdir "${feed_hash_idx}/info" || :
# Mark feed index fragment as outdated.
old_dir="${base_dir}/feeds/.db/${chan}_${dist}/${arch}_${plat}"
@@ -199,11 +199,11 @@ update_feeds()
"${sect}/Packages.gz"
fi
rmdir "${sect_dirent}"
- try_rmdir "${sect}"
+ try_rmdir "${sect}" || :
done
rmdir "${archplat_dirent}"
- try_rmdir "${archplat}"
- try_rmdir "${archplat%/*}"
+ try_rmdir "${archplat}" || :
+ try_rmdir "${archplat%/*}" || :
done
rmdir "${suite_dirent}"
exec 3>&-