Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
magiker opened this issue Nov 11, 2023 · 3 comments
Open

Comments

@magiker
Copy link

magiker commented Nov 11, 2023

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
Copy link
Contributor

What is the result of the following command?

$ ls -la /Users/{fredrik,user}

@magiker
Copy link
Author

magiker commented Nov 11, 2023

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
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants