21 lines
476 B
Bash
Executable file
21 lines
476 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# intermediate script to support extra options for regex_check.sh
|
|
|
|
# current script dir
|
|
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
|
|
|
|
# support WERROR option
|
|
[[ $WERROR == "ON" ]] && set -e
|
|
|
|
# call regex_check.sh to check repo
|
|
"$SCRIPT_DIR/../cicd/style/regex_check.sh" \
|
|
-e '^build[^/]*/' \
|
|
-e '^.*\.svg$' \
|
|
"$SCRIPT_DIR/.."
|
|
"$SCRIPT_DIR/../cicd/style/regex_check.sh" \
|
|
-e '^build[^/]*/' \
|
|
-r '(^$)|(^.*[^[:cntrl:][:blank:]]$)' \
|
|
"$SCRIPT_DIR/.."
|
|
|
|
exit 0
|