jldeen / dotfiles

@jldeen does dotfiles
https://jessicadeen.com/badass-terminal-wsl-macos-and-ubuntu-dotfiles-update/
MIT License
247 stars 120 forks source link

Script error in MacOS Catalina #21

Closed pinakighatak closed 4 years ago

pinakighatak commented 4 years ago

Running the bash curl on MacOS Catalina results in this error: bash: line 3: ./script/prompt: No such file or directory

jldeen commented 4 years ago

Confirmed. Replicated on macOS Catalina 10.15.5 (Beta). Looking into this and will update ASAP.

aaroncoville commented 4 years ago

I recently forked this code and am working through a few gotchas, this one being the first.

The source is relative to execution, so one workaround for you @pinakighatak would be to clone the repo and then run the remote configure.sh from that directory. You obviously could just run the configure.sh in the repo as well. In either case, it will bring in ./script/prompt from your local system.

@jldeen I solved this in my fork by changing the source command for ./script/prompt to

source /dev/stdin <<< "$(curl -fsSL https://raw.githubusercontent.com/jldeen/dotfiles/mac/script/prompt)"

I also had to change the execution call to

bash <(curl -fsSL https://raw.githubusercontent.com/jldeen/dotfiles/mac/configure.sh)

jldeen commented 4 years ago

Confirmed - @aaroncoville's fix resolves the issue on Catalina and his PR #23 has been merged. Aaron - can you DM me on Twitter? I want to shout you out and let everyone know your PR solved the issue. Thanks!