File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ function echo.LightBoldULBrown
481481}
482482function echo.Rainbow
483483{
484- if [ " type lolcat" ] ; then
484+ if type lolcat > /dev/null 2>&1 ; then
485485 echo " $@ " | lolcat
486486 else
487487 echo " $@ "
Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ function echoLightBoldULBrown
481481}
482482function echoRainbow
483483{
484- if [ " type lolcat" ] ; then
484+ if type lolcat 2> /dev/null >&2 ; then
485485 echo " $@ " | lolcat
486486 else
487487 echo " $@ "
Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ echoLightBoldULBrown()
481481}
482482 echoRainbow ()
483483{
484- if [ " type lolcat" ] ; then
484+ if type lolcat > /dev/null 2>&1 ; then
485485 echo " $@ " | lolcat
486486 else
487487 echo " $@ "
Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ function echo.LightBoldULBrown
481481}
482482function echo.Rainbow
483483{
484- if [ " type lolcat" ] ; then
484+ if type lolcat > /dev/null 2>&1 ; then
485485 echo " $@ " | lolcat
486486 else
487487 echo " $@ "
You canβt perform that action at this time.
0 commit comments