fix if statement compare strings with -gt

Change-Id: I400a9713c541eed594c458f9d426893fe034fbdc
This commit is contained in:
Noam Angel 2019-02-12 14:10:01 +00:00
parent 3482a7758e
commit fcdeb0c0b7

View File

@ -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
}