ohmybash / oh-my-bash

A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
https://ohmybash.github.io
MIT License
5.54k stars 626 forks source link

I cannot get this installer to work on bash 3.2 in the latest OS X Sonoma #495

Open magiker opened 7 months ago

magiker commented 7 months ago

OS X Sonoma 14.1.1 bash 3.2

I get this error:

host:tmp user$ pwd /Users/user/data/tmp bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" Warning: Bash >=4 is no longer required for Oh My Bash but is cool to have ;) Warning: Why don't you upgrade your Bash to 4 or higher? Cloning Oh My Bash... $ git clone --depth=1 https://github.com/ohmybash/oh-my-bash.git /Users/fredrik/.oh-my-bash fatal: could not create work tree dir '/Users/user/.oh-my-bash': Permission denied

Maybe it could work with bash version 4-5...

akinomyoga commented 7 months ago

What is the result of the following command?

$ ls -la /Users/{fredrik,user}
magiker commented 7 months ago

I tried to remove my host and username, observant of you :o) Excerpt:

ls -la /Users/fredrik/ total 208 drwx------@ 36 fredrik staff 1.1K Nov 11 16:50 ./ drwxr-xr-x 5 root admin 160B Nov 10 09:47 ../

Another issue which points out that there might some other problem in ~/: pwd && touch test /Users/fredrik touch: test: Permission denied Whereas I managed to use a subfolder data/ pwd && touch test /Users/fredrik/data/src Then I can create files. And I managed to clone the repo in there but the installation still fails. Maybe I should try in a chroot.
akinomyoga commented 7 months ago

Do you think the following Q&A is related to your issue?

The expected permission in macOS seems to be rwxr-xr-x, but the permission of your home directory seems to be rwx------@.

Then I can create files. And I managed to clone the repo in there but the installation still fails.

How does it fail there?