Skip to content

Commit

Permalink
Merge pull request #33 from sadihakan/development
Browse files Browse the repository at this point in the history
Update: MSSQL
  • Loading branch information
sadihakan committed Aug 10, 2022
2 parents b1112b6 + 0c85377 commit 1858d40
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions internal/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,7 @@ func buildShellCommand(command string, args []string) *exec.Cmd {
tmp := make([]string, 0)
switch runtime.GOOS {
case "windows":
arg = append(arg, string(os.PathSeparator)+"C")
tmp = append(tmp, command)
tmp = append(tmp, args...)
c := strings.Join(tmp, " ")
arg = append(arg, c)
return homeDirCommand(exec.Command("cmd", arg...))
return homeDirCommand(exec.Command(command, args...))
default:
arg = append(arg, "-c")
tmp = append(tmp, command)
Expand Down
1 change: 0 additions & 1 deletion internal/mssql.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ func (ms MSSQL) Export(dump config.Config) error {
exportQuery := fmt.Sprintf(`BACKUP DATABASE [%s] TO DISK = '%s'`,
dump.DB,
location)
fmt.Print(exportQuery)
_, err = db.Exec(exportQuery)
if err != nil {
return err
Expand Down

0 comments on commit 1858d40

Please sign in to comment.