From 0e3b511b39bbbb3e73deaa92bfb120beb252d46d Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 5 Dec 2026 12:20:28 -0800 Subject: Only attempt to update macos shell if it isn't oksh --- macos/shell.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'macos') 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 -- cgit v1.2.3