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