Fix un-saved error on chdir
This commit is contained in:
parent
fcae49611c
commit
328baaad84
2
main.go
2
main.go
|
@ -228,7 +228,7 @@ func wrappedMain() int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
if overrideWd != "" {
|
if overrideWd != "" {
|
||||||
os.Chdir(overrideWd)
|
err := os.Chdir(overrideWd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Ui.Error(fmt.Sprintf("Error handling -chdir option: %s", err))
|
Ui.Error(fmt.Sprintf("Error handling -chdir option: %s", err))
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in New Issue