Skip to content

Commit bc9543b

Browse files
committed
Fix command builder auto quoting
1 parent ebd1562 commit bc9543b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sync/database_local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ func (database *Database) localMysqlCmdBuilder(args ...string) []interface{} {
7676
args = append(args, shell.Quote(database.Local.Schema))
7777
}
7878

79-
return database.Local.Connection.CommandBuilder("mysql", args...)
79+
return database.Local.Connection.RawCommandBuilder("mysql", args...)
8080
}
8181

sync/server_sync_filesystem_stubs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (filesystem *Filesystem) SyncStubs() {
2424

2525
// Sync filesystem using rsync
2626
func (filesystem *Filesystem) generateStubs() {
27-
cmd := shell.Cmd(filesystem.Connection.CommandBuilder("find", filesystem.Path, "-type f")...)
27+
cmd := shell.Cmd(filesystem.Connection.CommandBuilder("find", filesystem.Path, "-type", "f")...)
2828
output := cmd.Run().Stdout.String()
2929

3030
removeBasePath := filesystem.Path

0 commit comments

Comments
 (0)