macstadium / orka-integrations

CI/CD Integrations for Orka by MacStadium
https://www.macstadium.com/orka
MIT License
43 stars 12 forks source link

Add -l to /bin/bash #21

Closed kuteninja closed 2 years ago

kuteninja commented 3 years ago

The -l option makes "bash act as if it had been invoked as a login shell". Login shells read certain initialization files from your home directory, such as .bash_profile.

More info at: https://www.gnu.org/software/bash/manual/html_node/Invoking-Bash.html

kuteninja commented 3 years ago

Particularly on gitlab-runner this fixes an issue where the gitlab-runner shows as not installed when it was installed via brew, it will also allow PATH and other variables to act the same as if you enter via an interactive ssh shell