mirror of
https://github.com/firehol/firehol.git
synced 2024-06-29 18:32:16 +00:00
fix for older systems
This commit is contained in:
parent
2a8547d47d
commit
e7a15cb5ee
@ -137,7 +137,7 @@ update() {
|
||||
|
||||
# check if we have to download again
|
||||
now=$(date +%s)
|
||||
date=$(printf "%(%Y%m%d%H%M.%S)T" $[now - (mins * 60)])
|
||||
date=$(date -d @$[now - (mins * 60)] +"%y-%m-%d %H:%M:%S")
|
||||
touch -t "${date}" "${tmp}"
|
||||
|
||||
if [ -f "${install}.source" -a "${install}.source" -nt "${tmp}" ]
|
||||
|
Loading…
Reference in New Issue
Block a user