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