Skip to content

Commit 8da73c1

Browse files
committed
add reference to issue in comment
1 parent 6860be2 commit 8da73c1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

validateScripts.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
found_error=0
77

88
validate_script() {
9-
# verify no function keywords in script
10-
result=$(grep -E ".*function +\w+.+{" "$1" )
9+
# verify that no 'function' keywords is used in script
10+
# See https://github.com/oracle/weblogic-kubernetes-operator/issues/1251
11+
#
12+
FIND_FUNCTION_EXPRESSION=".*function +\w+.+{"
13+
14+
result=$(grep -E "$FIND_FUNCTION_EXPRESSION" "$1" )
1115
if [ -n "$result" ]; then
1216
printf "Please remove usages of 'function' keyword from %s:\n%s\n" "$1" "$result"
1317
fi

0 commit comments

Comments
 (0)