mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
14 lines
347 B
Bash
14 lines
347 B
Bash
#!/bin/bash -e -o pipefail
|
|
|
|
source ~/utils/utils.sh
|
|
arch=$(get_arch)
|
|
|
|
echo "Changing shell to bash"
|
|
sudo chsh -s /bin/bash $USERNAME
|
|
sudo chsh -s /bin/bash root
|
|
|
|
# Check MacOS architecture and add HOMEBREW PATH to bashrc
|
|
if [[ $arch == "arm64" ]]; then
|
|
echo "Adding Homebrew environment to bash"
|
|
/opt/homebrew/bin/brew shellenv >> ~/.bashrc
|
|
fi |