mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-11 03:13:10 +00:00
1397971943
Co-authored-by: Yehonal <yehonal.azeroth@gmail.com>
18 lines
447 B
Bash
Executable File
18 lines
447 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
DB_ERRORS_FILE="./env/dist/bin/DBErrors.log";
|
|
|
|
if [[ ! -f ${DB_ERRORS_FILE} ]]; then
|
|
echo "File ${DB_ERRORS_FILE} not found!";
|
|
exit 1
|
|
fi
|
|
|
|
if [[ -s ${DB_ERRORS_FILE} ]]; then
|
|
printf "The DBErrors.log file contains startup errors:\n\n";
|
|
cat ${DB_ERRORS_FILE};
|
|
printf "\nPlease solve the startup errors listed above!\n";
|
|
exit 1;
|
|
else
|
|
echo "No startup errors found in DBErrors.log, good job!";
|
|
fi
|