diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2022-10-12 11:36:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 11:36:29 +0300 |
commit | 6ee10048b1d4401aeff58cc84235dac3ee550ea0 (patch) | |
tree | d950358ce8ebc3c7d4d974371ccd28119dda7e9a | |
parent | 73d43c25eb290e8879a590c8534202bcd400caeb (diff) | |
parent | 2c27a8fdce2ec5142d9472345d4545385b658202 (diff) |
Merge pull request #1336 from MassacreNetworks/patch-1
expected variable $NOW
-rwxr-xr-x | lynis | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |