fix: invoke login shells to source /etc/environment
(#570)
This commit is contained in:
parent
6cde8f64dc
commit
b438b836ea
1 changed files with 3 additions and 3 deletions
|
@ -259,13 +259,13 @@ func (s *Step) ShellCommand() string {
|
||||||
|
|
||||||
switch s.Shell {
|
switch s.Shell {
|
||||||
case "", "bash":
|
case "", "bash":
|
||||||
shellCommand = "bash --noprofile --norc -e {0}"
|
shellCommand = "bash --login --norc -e {0}"
|
||||||
case "pwsh":
|
case "pwsh":
|
||||||
shellCommand = "pwsh -command \"& '{0}'\""
|
shellCommand = "pwsh -login -command \"& '{0}'\""
|
||||||
case "python":
|
case "python":
|
||||||
shellCommand = "python {0}"
|
shellCommand = "python {0}"
|
||||||
case "sh":
|
case "sh":
|
||||||
shellCommand = "sh -e -c {0}"
|
shellCommand = "sh -l -e -c {0}"
|
||||||
case "cmd":
|
case "cmd":
|
||||||
shellCommand = "%ComSpec% /D /E:ON /V:OFF /S /C \"CALL \"{0}\"\""
|
shellCommand = "%ComSpec% /D /E:ON /V:OFF /S /C \"CALL \"{0}\"\""
|
||||||
case "powershell":
|
case "powershell":
|
||||||
|
|
Loading…
Reference in a new issue