Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix interpreter and improve install path detection (sindresorhus#611)
Change interpreter from `[[` to `[` for better shell compatibility (`sh`). Check target path for `/bin/zsh` and `/usr/bin/zsh` instead of assuming the path. This avoids the creation of nonsense paths. For instance, on Debian the interpreter is located at `/usr/bin/zsh`, however, the path is actually `/usr/local/share/zsh/site-functions`. Creating the folder in `/usr/share/zsh` would be a source of confusion. Fixes sindresorhus#610
- Loading branch information