Skip to content

Commit

Permalink
fix(setup): Set $SHELL when it's empty
Browse files Browse the repository at this point in the history
Move the operation from GitHub Actions YAML file to setup.
  • Loading branch information
5ouma committed Jan 2, 2024
1 parent e6022f0 commit f28015d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/detail-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
- name: Run setup
env:
SHELL: "null"
SETUP_SKIP_installDavinciResolve: true
SETUP_SKIP_loginGitHubCli: true
HOMEBREW_BUNDLE_MAS_SKIP: ${{ steps.skip.outputs.HOMEBREW_BUNDLE_MAS_SKIP }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:

- name: Run setup
env:
SHELL: "null"
SETUP_SKIP_installApps: true
SETUP_SKIP_installDavinciResolve: true
SETUP_SKIP_loginGitHubCli: true
Expand Down
2 changes: 1 addition & 1 deletion setup
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ installApps() {
} && run 'installApps' '## 📲 Install commands and apps'

changeLoginShell() {
[ "$SHELL" = "$(which zsh)" ] && return 2
[ "${SHELL:-""}" = "$(which zsh)" ] && return 2
which zsh | sudo tee -a /etc/shells >/dev/null
sudo chsh -s "$(which zsh)" "$USER"
} && run 'changeLoginShell' '### 🐚 Change login shell to Zsh'
Expand Down

0 comments on commit f28015d

Please sign in to comment.