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