fix(Bash): db-export on macOS (#4342)
This commit is contained in:
parent
adc525f813
commit
fe2fad17c7
2 changed files with 5 additions and 1 deletions
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue