mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 13:05:36 +01:00
Exclude changelog from grep (#96329)
This commit is contained in:
@@ -19,14 +19,14 @@ if command -v rg >/dev/null 2>&1; then
|
||||
if [ ! rg -P '' >/dev/null 2>&1 ] ; then
|
||||
pcre2_support=0
|
||||
fi
|
||||
code_files=( . -g '*.dm' -g '!DMCompiler_linux-x64/**' -g '!tools/ci/od_lints.dm' -g '!tools/CatchUnescapedBrackets/**' )
|
||||
code_files=( . -g '*.dm' -g '!DMCompiler_linux-x64/**' -g '!tools/ci/od_lints.dm' -g '!tools/CatchUnescapedBrackets/**' -g '!html/changelogs/**' )
|
||||
map_files="_maps/**/**.dmm"
|
||||
shuttle_map_files="_maps/shuttles/**.dmm"
|
||||
code_x_515="code/**/!(__byond_version_compat).dm"
|
||||
else
|
||||
pcre2_support=0
|
||||
grep=grep
|
||||
code_files=( -r --include='*.dm' --exclude-dir='DMCompiler_linux-x64' --exclude='od_lints.dm' --exclude-dir='CatchUnescapedBrackets' . )
|
||||
code_files=( -r --include='*.dm' --exclude-dir='DMCompiler_linux-x64' --exclude='od_lints.dm' --exclude-dir='CatchUnescapedBrackets' --exclude-dir='changelogs' . )
|
||||
map_files="-r --include=_maps/**/**.dmm"
|
||||
shuttle_map_files="-r --include=_maps/shuttles/**.dmm"
|
||||
code_x_515="-r --include=code/**/!(__byond_version_compat).dm"
|
||||
@@ -268,7 +268,7 @@ if $grep -i 'maintainance|maintainence|maintenence' "${code_files[@]}"; then
|
||||
echo -e "${RED}ERROR: Misspelling(s) of 'maintenance' detected in code, please fix.${NC}";
|
||||
st=1
|
||||
fi;
|
||||
if $grep -i 'securaty|securiy|secuirty' $code_files; then
|
||||
if $grep -i 'securaty|securiy|secuirty' "${code_files[@]}"; then
|
||||
echo
|
||||
echo -e "${RED}ERROR: Misspelling(s) of 'security' detected in code, please fix.${NC}";
|
||||
st=1
|
||||
|
||||
Reference in New Issue
Block a user