Skip to content

Commit 790a51f

Browse files
Update tests for sh/bash/zsh
1 parent 82b1296 commit 790a51f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

β€Žtest-scripts/bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ dir="$(cd "$(dirname "$0")" && pwd)"
55
script="${dir}/../dist/ColorEcho.bash"
66
. "${script}"
77

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
99
${x} "${x}"
1010
done

β€Žtest-scripts/sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ dir="$(cd "$(dirname "$_")" && pwd)"
55
script="${dir}/../dist/ColorEcho.sh"
66
. "${script}"
77

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
99
${x} "${x}"
1010
done

β€Žtest-scripts/zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dir="$(cd "$(dirname "${(%):-%N}")" && pwd)"
55
script="${dir}/../dist/ColorEcho.zsh"
66
. "${script}"
77

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
99
do
1010
${x} "${x}"
1111
done

0 commit comments

Comments
Β (0)