From d49ae7207b3275008b83d6592b81be983e2935b5 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Mon, 1 Mar 2021 06:38:44 +0000 Subject: [PATCH] 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) --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 70cb541..a0335e4 100644 --- a/README.md +++ b/README.md @@ -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 ```

@@ -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) \ No newline at end of file +==> [How to contribute](https://gitlab.com/W1nst0n/universal-android-debloater/-/wikis/home#how-to-contribute)