mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 13:05:36 +03:00
33 lines
715 B
Bash
33 lines
715 B
Bash
#!/bin/sh
|
|
|
|
# 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: 3
|
|
|
|
verbose="${VERBOSE:-0}"
|
|
readonly verbose
|
|
|
|
# Don't use -f, because we use globs in this script.
|
|
set -e -u
|
|
|
|
if [ "$verbose" -gt '0' ]; then
|
|
set -x
|
|
fi
|
|
|
|
# Source the common helpers, including not_found and run_linter.
|
|
. ./scripts/make/helper.sh
|
|
|
|
run_linter -e shfmt --binary-next-line -d -p -s \
|
|
./scripts/hooks/* \
|
|
./scripts/make/*.sh \
|
|
./scripts/snap/*.sh \
|
|
./snap/local/*.sh \
|
|
;
|
|
|
|
shellcheck -e 'SC2250' -f 'gcc' -o 'all' -x -- \
|
|
./scripts/hooks/* \
|
|
./scripts/make/*.sh \
|
|
./scripts/snap/*.sh \
|
|
./snap/local/*.sh \
|
|
;
|