chbrown / overdrive

Bash script to download mp3s from the OverDrive audiobook service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why do I have to mkdir and curl every time to use this

thejoel12 opened this issue · comments

Novice here - but why do I have to reinstall the script each time I use it. Am I doing something incorrectly when I install it?

I have no idea! Can't really help you out without more information about how you're installing it or how you're using it 😬

Screen Shot 2020-02-12 at 8 53 57 AM

If I have to reinstall each time it only takes a few seconds but still strange to me. As soon as I close terminal I love overdrive commands. Tried installing it to home instead of /usr/local and I tried sudo for chmod.

Ah, that's much better — your screenshot covers everything I need to give you an answer 👍

When I saw zsh I was about to say something like "and you call yourself a novice 😠" but (TIL) Apple changed the default shell from /bin/bash to /bin/zsh 😢:

macOS Catalina, released in October 2019, adopted Zsh as the default shell, replacing Bash.

In short, then, run through the "installation" one more time, and wherever you see ~/.bashrc, use ~/.zshrc instead (i.e., at the end of the printf and source commands).

Please let me know if that works, and I'll update the README with instructions about Zsh vs. Bash.

Btw., in case the suggestion above doesn't work, the only reinstall step that you need to run before each use is the source ~/.bashrc command (which is something Bash does when starting up; but since you're using Zsh, it ignores ~/.bashrc and tries to source ~/.zshrc, to no avail).

Yup that was it. Thanks!