Skip to content

Commit ef269dc

Browse files
Update comment styling
1 parent 14648c0 commit ef269dc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

β€Žgenerator.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ echo.BoldGreen "ColorEcho generator start!"
3232
for shell in sh bash fish ksh zsh; do
3333
{
3434
echo.BoldYellow "Generating ColorEcho for ${shell} shell ..."
35-
#shell specify configs and tricks
35+
# shell specify configs and tricks
3636
case "${shell}" in
3737
"bash" | "zsh")
3838
fn='function '
@@ -120,21 +120,21 @@ fi
120120
SH_ECHO
121121
fi
122122
awk '{print $1}' "${table}" | while IFS= read -r color; do
123-
#light or not
123+
# light or not
124124
for light in "" "Light"; do
125125
if [ "${light}" = "" ]; then
126126
code=3
127127
else
128128
code=9
129129
fi
130-
#bold or not
130+
# bold or not
131131
for bold in "" "Bold"; do
132132
if [ "${bold}" = "" ]; then
133133
bCode=
134134
else
135135
bCode='1;'
136136
fi
137-
#underline or not
137+
# underline or not
138138
for underLine in "" "UL"; do
139139
{
140140
echo ""
@@ -144,7 +144,7 @@ SH_ECHO
144144
else
145145
ulCode='4;'
146146
fi
147-
#write the code down
147+
# write the code down
148148
echo "${startSym}"
149149
echo " ${echo}"' "\\033['"${ulCode}${bCode}${code}""$(grep "${color}" "${table}" | awk '{print $2}')"'m$'"${para}"'\\033[m"'
150150
echo "${endSym}"
@@ -154,7 +154,7 @@ SH_ECHO
154154
done
155155
done
156156

157-
#rainbow output relys on lolcat
157+
# rainbow output relys on lolcat
158158
fnName="${fn}echo${dot}Rainbow${brackets}"
159159
case "${shell}" in
160160
"fish")
@@ -178,7 +178,7 @@ ${fnName}${startSym}
178178
${endSym}
179179
LOLCAT
180180

181-
#echo.Reset to remove color code on output
181+
# echo.Reset to remove color code on output
182182
fnName="${fn}echo${dot}Reset${brackets}"
183183
cat << RESET >> "${newDist}"
184184
${fnName}${startSym}

0 commit comments

Comments
Β (0)