From dad62a66102a5f35968c694200cad3a20da14dce Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 13 Apr 2019 01:35:01 -0400 Subject: Add "|| :" after try_rmdir() calls --- (limited to 'src/index.sh') 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>&- -- cgit v0.9.1