oh-my-bash icon indicating copy to clipboard operation
oh-my-bash copied to clipboard

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

Open magiker opened this issue 7 months ago • 3 comments

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...

magiker avatar Nov 11 '23 15:11 magiker

What is the result of the following command?

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

akinomyoga avatar Nov 11 '23 16:11 akinomyoga

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.

magiker avatar Nov 11 '23 17:11 magiker

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?

akinomyoga avatar Nov 12 '23 05:11 akinomyoga