say "Finished" only if not "No update done"

This commit is contained in:
Lucy Phipps 2021-02-07 08:25:17 +00:00 committed by GitHub
parent 7c967011d0
commit e2108d7563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -62,13 +62,12 @@ update_database() {
fi
zcat "${DB_PATH}.gz" > "${DB_PATH}"
rm -f "${DB_PATH}.gz"
if ! ${QUIET}; then
echo "[*] Finished." >&2
fi
elif ! ${QUIET}; then
echo "[*] No update done." >&2
fi
if ! ${QUIET}; then
echo "[*] Finished." >&2
fi
}
check_database() {