fix if statement compare strings with -gt
Change-Id: I400a9713c541eed594c458f9d426893fe034fbdc
This commit is contained in:
parent
3482a7758e
commit
fcdeb0c0b7
@ -61,7 +61,7 @@ healthcheck_file_modification () {
|
||||
curr_time=$(date +%s)
|
||||
last_mod=$(stat -c '%Y' $file_path)
|
||||
limit_epoch=$(( curr_time-limit_seconds ))
|
||||
if [ "$limit_epoch" -gt "$last_mod" ]; then
|
||||
if [ ${limit_epoch} -gt ${last_mod} ]; then
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user