fix(Bash): db-export on macOS (#4342)

This commit is contained in:
Francesco Borzì
2021-01-28 22:53:42 +01:00
committed by GitHub
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

Binary file not shown.

View File

@@ -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