fix for older systems

This commit is contained in:
Costa Tsaousis (ktsaou) 2015-04-24 21:25:18 +03:00
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}" ]