Apply suggestions from code review

Co-authored-by: yubiuser <ckoenig@posteo.de>
This commit is contained in:
DL6ER 2021-12-22 19:52:08 +01:00 committed by GitHub
parent 7167e6d5e4
commit 2e1ce7fc87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -880,6 +880,8 @@ database_recovery() {
echo -e "${OVER} ${TICK} ${str} - success"
mv "${gravityDBfile}" "${gravityDBfile}.old"
mv "${gravityDBfile}.recovered" "${gravityDBfile}"
echo -ne " ${INFO} ${gravityDBfile} has been recovered"
echo -ne " ${INFO} The old ${gravityDBfile} has been moved to ${gravityDBfile}.old"
else
echo -e "${OVER} ${CROSS} ${str} - the following errors happened:"
while IFS= read -r line ; do echo " - $line"; done <<< "$result"