Closed juanarbol closed 4 years ago
Interesting that hash wasn't working for you, what system and shell are you on? type
seems potentially slightly more dangerous, because hash
specifically checks for programs, and type
also checks for aliases, functions, and builtins.
Zsh on High Sierra
Sorry, It actually works! It was a lapsus of me, now just put tarball resource on a variable, updated in aaf12fa
Sorry, again, my bad
Oh, cool! I was having a minor panic attack thinking I forgot something about how hash
works :laughing:
I do not know if this "contribution" has any real value, close this pull request in case of this is not really needed
Change Type (Feature, Chore, Bug Fix, One Pager, etc.)
Fix
Description
I changed
hash
fortype
because it was actually not falling toelif
andelse
code blocks, just emit exceptionhash: no such command: ...
and just put theds
on a variable because it was actually the sameAlso I redirect
stderr
andstdout
to/dev/null
becausetype
printscommand is /route
instdout
How to test
Run
./misc/install.sh
on root folderChecklist