From 2c27a8fdce2ec5142d9472345d4545385b658202 Mon Sep 17 00:00:00 2001 From: Massacre Networks <81653728+MassacreNetworks@users.noreply.github.com> Date: Sat, 24 Sep 2022 19:11:40 +0300 Subject: expected variable $NOW --- lynis | 1 + 1 file changed, 1 insertion(+) diff --git a/lynis b/lynis index ab8c479e..3f6d3b84 100755 --- a/lynis +++ b/lynis @@ -791,6 +791,7 @@ ${NORMAL} OLD_RELEASE=0 TIME_DIFFERENCE_CHECK=10368000 # 4 months RELEASE_PLUS_TIMEDIFF=$((PROGRAM_RELEASE_TIMESTAMP + TIME_DIFFERENCE_CHECK)) + NOW=$(date "+%s") if [ ${NOW} -gt ${RELEASE_PLUS_TIMEDIFF} ]; then # Show if release is old, only if we didn't show it with normal update check if [ ${UPDATE_AVAILABLE} -eq 0 ]; then -- cgit v1.2.3