Skip to content

Commit 37f2333

Browse files
Set bash/zsh function brackets in declaration
1 parent aa7c835 commit 37f2333

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

β€Žgenerator.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ for shell in sh bash fish ksh zsh; do
4141
startSym=' {'
4242
endSym='}'
4343
endIf='fi'
44-
brackets=
44+
brackets='()'
4545
para='*'
4646
;;
4747
"ksh")
@@ -144,8 +144,7 @@ SH_ECHO
144144
esac
145145

146146
cat << LOLCAT >> "${newDist}"
147-
${fnName}
148-
${startSym}
147+
${fnName}${startSym}
149148
${ifCond}
150149
echo "\$${para}" | lolcat
151150
else
@@ -157,8 +156,7 @@ LOLCAT
157156
#echo.Reset to remove color code on output
158157
fnName="${fn}echo${dot}Reset${brackets}"
159158
cat << RESET >> "${newDist}"
160-
${fnName}
161-
${startSym}
159+
${fnName}${startSym}
162160
echo "\$${para}" | tr -d '[:cntrl:]' | sed -E "s/\\[((;)?[0-9]{1,3}){0,3}m//g"
163161
${endSym}
164162
RESET

0 commit comments

Comments
Β (0)