Update Bash instructions for macOS

Users shouldn't be required to change their default shell as this may lead to
unpredictable behaviour in the past (especially since zsh is the default shell
in the newer macOS versions)
This commit is contained in:
Nikita Karamov 2021-03-01 06:38:44 +00:00
parent ff05dd35b2
commit d49ae7207b

View file

@ -100,16 +100,19 @@ You will also need to upgrade bash because Apple ships a very old bash version (
$ brew install android-platform-tools qpdf bash
```
You have to make the new bash version your default:
The installed bash will not overwrite your system bash. To use the newer version need to overwrite it:
```bash
$ sudo echo "/usr/local/bin/bash" >> /etc/shells
$ chsh -s /usr/local/bin/bash
# this will overwrite temporarily and change back, when terminal closes
# alternatively, you can just call '/usr/local/bin/bash' instead of just 'bash'
$ alias bash=/usr/local/bin/bash
```
Check if it works:
Check that the bash command is the correct version now:
```bash
$ echo $BASH_VERSION
$ which bash # should be aliased to '/usr/local/bin/bash'
$ bash -c 'echo $BASH_VERSION' # should be 4.4 or greater
```
</details>
</p>
@ -187,4 +190,4 @@ $ bash debloat_script.sh
Hey-hey-hey! Don't go away so fast! This is a community project. That means I need you! I'm sure you want to make this project better anyway.
==> [How to contribute](https://gitlab.com/W1nst0n/universal-android-debloater/-/wikis/home#how-to-contribute)
==> [How to contribute](https://gitlab.com/W1nst0n/universal-android-debloater/-/wikis/home#how-to-contribute)