# Kubernetes runner does not set the shell

**URL:** <https://drone.discourse.group/t/kubernetes-runner-does-not-set-the-shell/7906>\
**Category:** Drone Support\
**Created:** [July 14, 2020, 7:02pm UTC](https://drone.discourse.group/t/kubernetes-runner-does-not-set-the-shell/7906 "2020-07-14T19:02:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xrl](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/xrl/32/4288_2.png) [@xrl](https://drone.discourse.group/u/xrl)\
**Post date:** [July 14, 2020, 7:02pm UTC](https://drone.discourse.group/t/kubernetes-runner-does-not-set-the-shell/7906/1 "2020-07-14T19:02:48Z")

</div>

I want to override the default shell used by the steps in my kubernetes pipeline but it looks like it is being ignored. I am using a debian image which uses `dash` but I want Drone to use the `bash` shell instead. I found the shell setting in the Step struct: [https://github.com/drone-runners/drone-runner-kube/blob/0ea12962e3dcfd6e7573d0c774740b4186388df9/engine/resource/pipeline.go#L135](https://github.com/drone-runners/drone-runner-kube/blob/0ea12962e3dcfd6e7573d0c774740b4186388df9/engine/resource/pipeline.go#L135) . but it doesn’t look like that is set in the pod definition for kubernetes.

---

<div class="post-metadata">

**Author:** ![ashwilliams1](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ashwilliams1/32/5549_2.png) [@ashwilliams1](https://drone.discourse.group/u/ashwilliams1)\
**Post date:** [July 14, 2020, 7:24pm UTC](https://drone.discourse.group/t/kubernetes-runner-does-not-set-the-shell/7906/2 "2020-07-14T19:24:58Z")

</div>

For Linux builds, Drone always uses `sh` when executing commands. If you need different behavior, instead of using the commands section, you can drop down to a lower level and set the entrypoint and command, which will respect the default SHELL.

```diff
steps:
  - name: foo
    image: bar
- commands:
- - echo hello world
+ entrypoint:
+ - /bin/bash
+ command:
+ - -c
+ - echo hello world

```
