Skip to content

Support zsh shell

Fedor Korotkov requested to merge fkorotkov/gitlab-runner:zsh-support into main

What does this MR do?

Adds support for zsh shell. zsh is shell compatible so since the runner generates scripts compatible with sh, zsh should just work. I've enabled integration tests for it and all of them passed. Also tested the runner itself on my self-hosted macOS runner.

Why was this MR needed?

Default shell on macOS is zsh for a long time now and many tools only customize it. For example, they modify ~/.zprofile and not ~/.profile. So right now if you try to run a self hosted macOS runner a lot of customizations don't work.

What's the best way to test this MR?

I've enabled integration tests.

What are the relevant issue numbers?

Fixes #27661 (closed)

Merge request reports