Skip to content

Commit

Permalink
[DP-1302] don't step on SHELL (#21)
Browse files Browse the repository at this point in the history
* [DP-1302] don't step on SHELL

* update CODEOWNERS
  • Loading branch information
SteveRuble authored Sep 1, 2022
1 parent b855a75 commit 9ad1697
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @ConsultingMD/platform
* @ConsultingMD/developer-platform
3 changes: 1 addition & 2 deletions lib/core/shell/custom/99_bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# module is updated

# Only continue if we're on bash
SHELL=$(ps -cp "$$" -o command="")
if [[ ! $SHELL =~ "bash" ]]; then
if [[ ! $(ps -cp "$$" -o command="") =~ "bash" ]]; then
return 0
fi
3 changes: 1 addition & 2 deletions lib/core/shell/custom/99_zsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# formula is updated

# Only continue if we're on zsh
SHELL=$(ps -cp "$$" -o command="")
if [[ ! $SHELL =~ "zsh" ]]; then
if [[ ! $(ps -cp "$$" -o command="") =~ "zsh" ]]; then
return 0
fi
3 changes: 1 addition & 2 deletions lib/core/shell/default/99_bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
# Changes will be overwritten if you update the ih-core formula

# Only continue if we're on bash
SHELL=$(ps -cp "$$" -o command="")
if [[ ! $SHELL =~ "bash" ]]; then
if [[ ! $(ps -cp "$$" -o command="") =~ "bash" ]]; then
return 0
fi

Expand Down
3 changes: 1 addition & 2 deletions lib/core/shell/default/99_zsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
# Changes to this file will be overwritten if you update the ih-core formula

# Only continue if we're on zsh
SHELL=$(ps -cp "$$" -o command="")
if [[ ! $SHELL =~ "zsh" ]]; then
if [[ ! $(ps -cp "$$" -o command="") =~ "zsh" ]]; then
return 0
fi

Expand Down

0 comments on commit 9ad1697

Please sign in to comment.