We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6860be2 commit 8da73c1Copy full SHA for 8da73c1
validateScripts.sh
@@ -6,8 +6,12 @@
6
found_error=0
7
8
validate_script() {
9
- # verify no function keywords in script
10
- result=$(grep -E ".*function +\w+.+{" "$1" )
+ # verify that no 'function' keywords is used in script
+ # 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" )
15
if [ -n "$result" ]; then
16
printf "Please remove usages of 'function' keyword from %s:\n%s\n" "$1" "$result"
17
fi
0 commit comments