We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
which
command -v
1 parent e332a9e commit da64ce2Copy full SHA for da64ce2
generator.sh
@@ -159,13 +159,13 @@ SH_ECHO
159
fnName="${fn}echo${dot}Rainbow${brackets}"
160
case "${shell}" in
161
"fish")
162
- ifCond="if which lolcat > /dev/null"
+ ifCond="if command -v lolcat > /dev/null"
163
;;
164
"ksh")
165
- ifCond='if which lolcat 2> /dev/null >&2; then'
+ ifCond='if command -v lolcat 2> /dev/null >&2; then'
166
167
*)
168
- ifCond='if which lolcat > /dev/null 2>&1; then'
+ ifCond='if command -v lolcat > /dev/null 2>&1; then'
169
170
esac
171
0 commit comments