Skip to content

Commit 6d47a43

Browse files
committed
fix(codex): operation not permitted
avoid using ps to determine shell because ps is not permitted when running inside the codex sandbox see openai/codex#4620
1 parent 184d6a9 commit 6d47a43

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install/packages.sh
1111
# make sure homebrew ARM binaries are on the path during the first install
1212
# so we can find them in the scripts that follow
1313
if [[ -f /opt/homebrew/bin/brew ]]; then
14-
eval "$(/opt/homebrew/bin/brew shellenv)"
14+
eval "$(/opt/homebrew/bin/brew shellenv zsh)"
1515
fi
1616

1717
install/fonts.sh

install/packages.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -euo pipefail
88
# this handles reruns within the same terminal of the very first install
99
# and avoids updating .zprofile again
1010
if [[ -f /opt/homebrew/bin/brew ]]; then
11-
eval "$(/opt/homebrew/bin/brew shellenv)"
11+
eval "$(/opt/homebrew/bin/brew shellenv zsh)"
1212
fi
1313

1414
# install brew
@@ -21,8 +21,8 @@ if ! hash brew 2> /dev/null; then
2121
# additional steps are needed to add it to the path
2222
echo "Adding Homebrew to your PATH in .zprofile"
2323
set -x
24-
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> "$HOME"/.zprofile
25-
eval "$(/opt/homebrew/bin/brew shellenv)"
24+
echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> "$HOME"/.zprofile
25+
eval "$(/opt/homebrew/bin/brew shellenv zsh)"
2626
set +x
2727
fi
2828

0 commit comments

Comments
 (0)