diff options
Diffstat (limited to 'macos/shell.sh')
| -rwxr-xr-x | macos/shell.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/macos/shell.sh b/macos/shell.sh index 116f907..7168513 100755 --- a/macos/shell.sh +++ b/macos/shell.sh @@ -2,6 +2,7 @@ set -o errexit set -o nounset -echo "$(brew --prefix)/bin/oksh" | sudo tee -a /etc/shells -chsh -s "$(brew --prefix)/bin/oksh" - +if [ "$SHELL" != "$(brew --prefix)/bin/oksh" ]; then + echo "$(brew --prefix)/bin/oksh" | sudo tee -a /etc/shells + chsh -s "$(brew --prefix)/bin/oksh" +fi |