2021-05-19 20:31:20 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-02-21 16:38:22 +03:00
|
|
|
# This comment is used to simplify checking local copies of the script. Bump
|
|
|
|
# this number every time a remarkable change is made to this script.
|
|
|
|
#
|
|
|
|
# AdGuard-Project-Version: 2
|
|
|
|
|
2021-05-19 20:31:20 +03:00
|
|
|
verbose="${VERBOSE:-0}"
|
|
|
|
readonly verbose
|
|
|
|
|
|
|
|
if [ "$verbose" -gt '0' ]
|
|
|
|
then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Set $EXIT_ON_ERROR to zero to see all errors.
|
|
|
|
if [ "${EXIT_ON_ERROR:-1}" -eq '0' ]
|
|
|
|
then
|
|
|
|
set +e
|
|
|
|
else
|
|
|
|
set -e
|
|
|
|
fi
|
|
|
|
|
|
|
|
# We don't need glob expansions and we want to see errors about unset variables.
|
|
|
|
set -f -u
|
|
|
|
|
2023-02-21 16:38:22 +03:00
|
|
|
# Source the common helpers, including not_found.
|
|
|
|
. ./scripts/make/helper.sh
|
2021-05-19 20:31:20 +03:00
|
|
|
|
2021-08-23 18:10:36 +03:00
|
|
|
git ls-files -- '*.md' '*.yaml' '*.yml' 'client/src/__locales/en.json'\
|
2023-02-21 16:38:22 +03:00
|
|
|
| xargs misspell --error\
|
|
|
|
| sed -e 's/^/misspell: /'
|