Skip to content

Commit dd1315a

Browse files
committed
ci: fix Settings style check
1 parent 6209295 commit dd1315a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/jobs/scripts/check_style/check-settings-style

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ function add_setting_declaration_file()
5555
fi
5656
filename=$(basename -- "$1")
5757
filename="${filename%.*}"
58-
grep "DECLARE(" "$1" | awk -vfilename="${filename}" '{print substr($2, 0, length($2) - 1) " " filename substr($1, 9, length($1) - 9) " SettingsDeclaration" }' >> "${SETTINGS_FILE}"
58+
grep -e "DECLARE(" "$1" | awk -vfilename="${filename}" '{print substr($2, 0, length($2) - 1) " " filename substr($1, 9, length($1) - 9) " SettingsDeclaration" }' >> "${SETTINGS_FILE}"
59+
grep -e "DECLARE_WITH_ALIAS(" "$1" | awk -vfilename="${filename}" '{print substr($2, 0, length($2) - 1) " " filename substr($1, 20, length($1) - 20) " SettingsDeclaration" }' >> "${SETTINGS_FILE}"
5960
}
6061

6162
for settings_file in ${ALL_DECLARATION_FILES};

0 commit comments

Comments
 (0)