forked from TrueCloudLab/restic
Move backend/sftp.SplitShellArgs to backend/
This commit is contained in:
parent
e4a39e02d2
commit
345b6c4694
3 changed files with 3 additions and 3 deletions
|
@ -179,7 +179,7 @@ func (r *SFTP) IsNotExist(err error) bool {
|
||||||
|
|
||||||
func buildSSHCommand(cfg Config) (cmd string, args []string, err error) {
|
func buildSSHCommand(cfg Config) (cmd string, args []string, err error) {
|
||||||
if cfg.Command != "" {
|
if cfg.Command != "" {
|
||||||
return SplitShellArgs(cfg.Command)
|
return backend.SplitShellArgs(cfg.Command)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd = "ssh"
|
cmd = "ssh"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package sftp
|
package backend
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"unicode"
|
"unicode"
|
|
@ -1,4 +1,4 @@
|
||||||
package sftp
|
package backend
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
Loading…
Reference in a new issue