Skip to content

Commit

Permalink
BFD-3695: Update ndctext.zip (#2463)
Browse files Browse the repository at this point in the history
  • Loading branch information
dondevun authored Oct 22, 2024
1 parent c6428ca commit 82735d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/scripts/pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ runShellCheckForCommitFiles() {
git diff --cached --name-only --diff-filter=ACM >"$tmpfile"
commits=$(cat "$tmpfile")
for file in $commits; do
firstTwo=$( sed 's/^\(..\).*/\1/;q' "$file" )
filename=$(basename -- "$file")
extension="${filename##*.}"
if [ "$extension" == "zip" ]; then
continue
fi
firstTwo=$( sed 's/^\(..\).*/\1/;q' "$file" )
# check for a hashbang or a .sh extension to determine if this is a shell script.
if [ "$firstTwo" == "#!" ] || [ "$extension" == "sh" ]; then
# run shellcheck with severity level warning, and suppress warnings about invalid hashbangs (allows it to ignore other types of scripts, e.g. python)
Expand Down
Binary file modified apps/bfd-data-fda/src/main/resources/ndctext.zip
Binary file not shown.

0 comments on commit 82735d3

Please sign in to comment.