forked from evolix/evocheck
Fix #14 by adding a break
We need to break to display only one error message.
This commit is contained in:
parent
0f95043daf
commit
d338fc7e9b
|
@ -658,6 +658,7 @@ if [ -e /etc/debian_version ]; then
|
|||
if ! [[ "$file" =~ indexes ]]; then
|
||||
if [ -f $file ] && [ $(stat -c "%Y" $file) -lt $(date +"%s" -d "now - 2 day") ]; then
|
||||
echo 'IS_MONGO_BACKUP FAILED!'
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue