From d4b486f60200c4e5f74a37b18599ef7f8d8150bb Mon Sep 17 00:00:00 2001 From: Rahul Kumaresan Date: Thu, 29 Apr 2021 21:58:31 +0530 Subject: [PATCH 1/2] use default shell on system --- riot/riot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riot/riot.py b/riot/riot.py index 366d84c..2643f6c 100644 --- a/riot/riot.py +++ b/riot/riot.py @@ -15,7 +15,7 @@ logger = logging.getLogger(__name__) -SHELL = "/bin/bash" +SHELL = os.getenv("SHELL", "/bin/bash") ENCODING = sys.getdefaultencoding() From 5188640f4d8d801979c48004496a99dde0d4bb35 Mon Sep 17 00:00:00 2001 From: Rahul Kumaresan Date: Thu, 29 Apr 2021 22:47:04 +0530 Subject: [PATCH 2/2] add releasenotes for changes in d4b486f --- releasenotes/notes/use-system-shell-222f6711f7b17dd4.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 releasenotes/notes/use-system-shell-222f6711f7b17dd4.yaml diff --git a/releasenotes/notes/use-system-shell-222f6711f7b17dd4.yaml b/releasenotes/notes/use-system-shell-222f6711f7b17dd4.yaml new file mode 100644 index 0000000..a649c75 --- /dev/null +++ b/releasenotes/notes/use-system-shell-222f6711f7b17dd4.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + source the shell from the system's ``SHELL`` environment variable, + if that's missing fall back to ``/bin/bash`` as the default shell.