chbrown / overdrive

Bash script to download mp3s from the OverDrive audiobook service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exit with descriptive message on missing executable

chbrown opened this issue · comments

Some of the overdrive commands call executables that are not standard on all systems.

When one of these is needed, but not found on the calling machine, the script should exit with a descriptive error message, indicating precisely what executable was missing (perhaps even describing how to install it).

Having replaced xmlstarlet with xmllint in 0b92b55, I think (🙏) everything this script now uses is standard on macOS, so this is no longer needed.