mirror of
https://github.com/kemko/xc.git
synced 2026-01-01 15:55:43 +03:00
init raise after remote init
This commit is contained in:
@@ -113,8 +113,6 @@ func New(cfg *config.XCConfig, backend store.Backend) (*Cli, error) {
|
||||
cli.debug = cfg.Debug
|
||||
cli.connectTimeout = cfg.SSHConnectTimeout
|
||||
cli.remoteTmpDir = cfg.RemoteTmpdir
|
||||
cli.setRaiseType(cfg.RaiseType)
|
||||
cli.setDistributeType(cfg.Distribute)
|
||||
|
||||
// output
|
||||
cli.outputFileName = ""
|
||||
@@ -142,6 +140,9 @@ func New(cfg *config.XCConfig, backend store.Backend) (*Cli, error) {
|
||||
cli.setInterpreter("sudo", cfg.SudoInterpreter)
|
||||
cli.setInterpreter("su", cfg.SuInterpreter)
|
||||
|
||||
cli.setRaiseType(cfg.RaiseType)
|
||||
cli.setDistributeType(cfg.Distribute)
|
||||
|
||||
cli.curDir, err = os.Getwd()
|
||||
if err != nil {
|
||||
term.Errorf("Error determining current directory: %s\n", err)
|
||||
|
||||
Reference in New Issue
Block a user