From 7bedf65ff71e83a8a99d4718da322c3e2fcc1b62 Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Sun, 29 Aug 2021 12:00:01 +0200 Subject: [PATCH] bugfix: it wasn't saving the new cache file in case of change. --- pkgupdate | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgupdate b/pkgupdate index 6bd0d80..44e5a1d 100755 --- a/pkgupdate +++ b/pkgupdate @@ -40,6 +40,8 @@ check_cache() { rm ${CACHE_DIR}/index.now echo "No changes on the mirror." exit 0 + else + mv ${CACHE_DIR}/index.now ${CACHE_DIR}/index.previous fi fi else