Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

feat(shell-executor): add an environment variable SPFOWERSCRIPTS_DEFAULT_SHELL to select shell#873

Merged
azlam-abdulsalam merged 2 commits into
developfrom
feat/env-var-shell
Mar 2, 2022
Merged

feat(shell-executor): add an environment variable SPFOWERSCRIPTS_DEFAULT_SHELL to select shell#873
azlam-abdulsalam merged 2 commits into
developfrom
feat/env-var-shell

Conversation

@azlam-abdulsalam

Copy link
Copy Markdown
Contributor

sfpowerscripts have defaulted to utilize sh for triggering scripts, Some projects however use
different implementations of shell such as bash, dash etc, This could be addressed by adding a
symlink from sh to the one in the environment. However, due to difficulty in changing the docker
image and other layer, an env variable is introduced which can be used to set the shell

…ULT_LINUX_SHELL to select shell

sfpowerscripts have defaulted to utilize sh for triggering scripts, Some projects however use
different implementations of shell such as bash, dash etc, This could be addressed by adding a
symlink from sh to the one in the environment. However, due to difficulty in changing the docker
image and other layer, an env variable is introduced which can be used to set the shell
@azlam-abdulsalam azlam-abdulsalam requested a review from aly76 March 2, 2022 00:21
@azlam-abdulsalam azlam-abdulsalam added the enhancement enhancement to existing feature label Mar 2, 2022
@azlam-abdulsalam azlam-abdulsalam added this to the Release - March 2022 milestone Mar 2, 2022
@codecov-commenter

codecov-commenter commented Mar 2, 2022

Copy link
Copy Markdown

Codecov Report

Merging #873 (5d5b0d1) into develop (f566894) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #873   +/-   ##
========================================
  Coverage    64.54%   64.54%           
========================================
  Files           49       49           
  Lines         1616     1616           
  Branches       345      345           
========================================
  Hits          1043     1043           
  Misses         573      573           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f566894...5d5b0d1. Read the comment docs.

@aly76 aly76 changed the title feat(shell-executor): add an environment variable SPFOWERSCRIPTS_DEFAULT_LINUX_SHELL to select shell feat(shell-executor): add an environment variable SPFOWERSCRIPTS_DEFAULT_SHELL to select shell Mar 2, 2022
@azlam-abdulsalam azlam-abdulsalam merged commit a131223 into develop Mar 2, 2022
@azlam-abdulsalam azlam-abdulsalam deleted the feat/env-var-shell branch March 2, 2022 03:03
azlam-abdulsalam added a commit that referenced this pull request Mar 9, 2022
…ULT_SHELL to select shell (#873)

* feat(shell-executor): add an environment variable SPFOWERSCRIPTS_DEFAULT_LINUX_SHELL to select shell

sfpowerscripts have defaulted to utilize sh for triggering scripts, Some projects however use
different implementations of shell such as bash, dash etc, This could be addressed by adding a
symlink from sh to the one in the environment. However, due to difficulty in changing the docker
image and other layer, an env variable is introduced which can be used to set the shell

* refactor(default-shell): remove Linux from the var name, to align with other Posix like MacOS
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement enhancement to existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants