From f76f1c446011baf3cc3383f84118574a33066514 Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Apr 05 2024 09:21:55 +0000 Subject: scripts/common-functions: silenc errors when forcibly removing cache files --- diff --git a/scripts/common-functions b/scripts/common-functions index 107016e..dadc0c3 100644 --- a/scripts/common-functions +++ b/scripts/common-functions @@ -8,7 +8,7 @@ fetch_cache() local EXPIRE=$3 local REFRESH=$4 - [ -n "$REFRESH" ] && rm "$CACHE_FILE" + [ -n "$REFRESH" ] && rm "$CACHE_FILE" 2>/dev/null if [[ $(find "$CACHE_FILE" -mtime -${EXPIRE:-7} -print 2>/dev/null) \ && -s "$CACHE_FILE" ]]; then echo $CACHE_FILE