File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ dir="$(cd "$(dirname "$0")" && pwd)"
5
5
script=" ${dir} /../dist/ColorEcho.bash"
6
6
. " ${script} "
7
7
8
- awk ' /^function +echo/ {print $2}' " ${script} " | while IFS= read -r x; do
8
+ awk ' /^function +echo/ {print $2}' " ${script} " | sed ' s/()//g ' | while IFS= read -r x; do
9
9
${x} " ${x} "
10
10
done
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ dir="$(cd "$(dirname "$_")" && pwd)"
5
5
script=" ${dir} /../dist/ColorEcho.sh"
6
6
. " ${script} "
7
7
8
- grep -E " echo[a-zA-Z]+()" " ${script} " | sed ' s/()//g' | while IFS= read -r x; do
8
+ grep -E " echo[a-zA-Z]+()" " ${script} " | sed -e ' s/()//g ' -e ' s/ {$ //g' | while IFS= read -r x; do
9
9
${x} " ${x} "
10
10
done
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ dir="$(cd "$(dirname "${(%):-%N}")" && pwd)"
5
5
script=" ${dir} /../dist/ColorEcho.zsh"
6
6
. " ${script} "
7
7
8
- awk ' /^function +echo/ {print $2}' " ${script} " | while IFS= read -r x
8
+ awk ' /^function +echo/ {print $2}' " ${script} " | sed ' s/()//g ' | while IFS= read -r x
9
9
do
10
10
${x} " ${x} "
11
11
done
You canβt perform that action at this time.
0 commit comments