mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Bash): db-export on macOS (#4342)
This commit is contained in:
BIN
deps/drassil/mysql-tools/bin/dump-parser-mac
vendored
Executable file
BIN
deps/drassil/mysql-tools/bin/dump-parser-mac
vendored
Executable file
Binary file not shown.
6
deps/drassil/mysql-tools/shared-def
vendored
6
deps/drassil/mysql-tools/shared-def
vendored
@@ -8,6 +8,10 @@ MYSQLIMPORT="mysqlimport"
|
||||
MYSQLDUMP="mysqldump"
|
||||
DUMPPARSER=$MT_DIR"/bin/dump-parser"
|
||||
|
||||
if [[ $(uname -s) == "Darwin" ]]; then
|
||||
DUMPPARSER=$MT_DIR"/bin/dump-parser-mac"
|
||||
fi;
|
||||
|
||||
#empty for bash commands
|
||||
WIN_BIN=0
|
||||
command -v mysql >/dev/null 2>&1 || { WIN_BIN=1; }
|
||||
@@ -15,7 +19,7 @@ command -v mysqlimport >/dev/null 2>&1 || { WIN_BIN=1; }
|
||||
command -v mysqldump >/dev/null 2>&1 || { WIN_BIN=1; }
|
||||
|
||||
WIN_BIN=1
|
||||
if [ `uname -s` == "Linux" ]; then
|
||||
if [[ $(uname -s) == "Linux") ]] || [[ $(uname -s) == "Darwin" ]]; then
|
||||
WIN_BIN=0
|
||||
else
|
||||
WIN_BIN=1
|
||||
|
||||
Reference in New Issue
Block a user