diff options
| author | Shulhan <ms@kilabit.info> | 2021-04-04 05:35:50 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-04-04 05:36:11 +0700 |
| commit | a79aeccc6bbdbb93cfcc59930e90af35aa993dab (patch) | |
| tree | e696b7e476f7991da8e85f9cab95b0c939bb1216 /command.go | |
| parent | 6770cd3062f8d3a23213eb95dd05cbc5bb03a26c (diff) | |
| download | awwan-a79aeccc6bbdbb93cfcc59930e90af35aa993dab.tar.xz | |
all: do not load SSH config if command mode is "local"
If the mode is local there is no need to parse and load the SSH config,
since the command to be executed will run on local machine anyway.
Diffstat (limited to 'command.go')
| -rw-r--r-- | command.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,7 +64,7 @@ func NewCommand(mode, scriptPath string, startAt, endAt int) (cmd *Command, err scriptEnd: endAt, } - cmd.env, err = newEnvironment(scriptPath) + cmd.env, err = newEnvironment(mode, scriptPath) if err != nil { return nil, fmt.Errorf("%s: %w", logp, err) } |
