From 080d9513ce9aecc80dfd5afe62805752710ed2e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Wed, 29 May 2024 14:40:33 +0200 Subject: [PATCH] Fixup last commit with a prettier output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- .../mirrormanager/templates/update-mirrorlist-cache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/openshift-apps/mirrormanager/templates/update-mirrorlist-cache.sh b/roles/openshift-apps/mirrormanager/templates/update-mirrorlist-cache.sh index 29da242cd6..a4cba98ea6 100644 --- a/roles/openshift-apps/mirrormanager/templates/update-mirrorlist-cache.sh +++ b/roles/openshift-apps/mirrormanager/templates/update-mirrorlist-cache.sh @@ -10,7 +10,7 @@ set -x rm -rf ${CACHEDIR}/old mkdir -p ${CACHEDIR}/old chmod g+w ${CACHEDIR}/old -if ls ${CACHEDIR}/*.* >/dev/null; then +if ls ${CACHEDIR}/*.* &>/dev/null; then cp -arf ${CACHEDIR}/*.* ${CACHEDIR}/old/ fi