mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-16 16:28:17 +01:00
arithmetic formatting
This commit is contained in:
parent
3bc7352b54
commit
dfe6cf3e08
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ choosecontainers() {
|
||||||
|
|
||||||
datecheck() {
|
datecheck() {
|
||||||
ImageDate=$($regbin image inspect "$RepoUrl" --format='{{.Created}}' | cut -d" " -f1 )
|
ImageDate=$($regbin image inspect "$RepoUrl" --format='{{.Created}}' | cut -d" " -f1 )
|
||||||
ImageAge=$((($(date +%s) - $(date -d "$ImageDate" +%s))/86400))
|
ImageAge=$(( ( $(date +%s) - $(date -d "$ImageDate" +%s) )/86400 ))
|
||||||
if [ $ImageAge -gt $DaysOld ] ; then
|
if [ $ImageAge -gt $DaysOld ] ; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue