mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

# Conflicts: # .github/scripts/trailing-newlines.sh # Makefile # qt/tools/typecheck-setup.sh # react/Makefile # rspy/Makefile # svelte/Makefile # tslib/Makefile
10 lines
238 B
Bash
Executable file
10 lines
238 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eu -o pipefail ${SHELLFLAGS}
|
|
|
|
files=$(rg -l '[^\n]\z' -g '!*.{svg,scss,json,sql}' || true)
|
|
if [ "$files" != "" ]; then
|
|
echo "the following files are missing a newline on the last line:"
|
|
echo $files
|
|
exit 1
|
|
fi
|