Skip to content

Commit aa7c835

Browse files
Change function declaration style
1 parent d8e3e2e commit aa7c835

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

β€Žgenerator.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ for shell in sh bash fish ksh zsh; do
3838
fn='function '
3939
dot='.'
4040
echo='echo'
41-
startSym='{'
41+
startSym=' {'
4242
endSym='}'
4343
endIf='fi'
4444
brackets=
@@ -48,7 +48,7 @@ for shell in sh bash fish ksh zsh; do
4848
fn='function '
4949
dot=
5050
echo='/bin/echo'
51-
startSym='{'
51+
startSym=' {'
5252
endSym='}'
5353
endIf='fi'
5454
brackets=
@@ -69,7 +69,7 @@ for shell in sh bash fish ksh zsh; do
6969
dot=
7070
# shellcheck disable=SC2016
7171
echo='$ECHO'
72-
startSym='{'
72+
startSym=' {'
7373
endSym='}'
7474
endIf='fi'
7575
brackets='()'
@@ -113,7 +113,7 @@ SH_ECHO
113113
for underLine in "" "UL"; do
114114
{
115115
echo ""
116-
echo "${fn}echo${dot}${light}${bold}${underLine}${color}${brackets}"
116+
printf "%secho%s%s%s%s%s%s" "${fn}" "${dot}" "${light}" "${bold}" "${underLine}" "${color}" "${brackets}"
117117
if [ "${underLine}" = "" ]; then
118118
ulCode=
119119
else

0 commit comments

Comments
Β (0)