mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-11 03:13:10 +00:00
fix(Bash): db-export on macOS (#4342)
This commit is contained in:
BIN
Binary file not shown.
Vendored
+5
-1
@@ -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