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.
1 parent 7ee9d63 commit b7bf7e1Copy full SHA for b7bf7e1
generator.sh
@@ -123,11 +123,17 @@ do
123
124
#rainbow output relys on lolcat
125
fnName="${fn} echo${dot}Rainbow${brackets}"
126
- if [ "$shell" = "fish" ]; then
127
- ifCond="if type lolcat > /dev/null"
128
- else
129
- ifCond='if [ "type lolcat" ]; then'
130
- fi
+ case "$shell" in
+ "fish")
+ ifCond="if type lolcat > /dev/null"
+ ;;
+ "ksh")
131
+ ifCond='if type lolcat 2> /dev/null >&2; then'
132
133
+ *)
134
+ ifCond='if type lolcat > /dev/null 2>&1; then'
135
136
+ esac
137
138
cat << LOLCAT >> "$newDist"
139
$fnName
0 commit comments