mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 02:38:59 +00:00
Meta: Skip shellcheck for Ports in pre-commit hook
Shellcheck barfs on many of the patterns we use in port scripts, the check is already disabled when we run the script in CI, so we might as well disable the check for pre-commit as well.
This commit is contained in:
parent
d08a1aae63
commit
4b2bbe6a7e
Notes:
sideshowbarker
2024-07-17 20:43:26 +09:00
Author: https://github.com/bgianfo
Commit: 4b2bbe6a7e
Pull-request: https://github.com/SerenityOS/serenity/pull/11964
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,11 @@ if [ "$#" -eq "0" ]; then
|
||||||
else
|
else
|
||||||
files=()
|
files=()
|
||||||
for file in "$@"; do
|
for file in "$@"; do
|
||||||
|
# Skip ports, like we in the CI case above.
|
||||||
|
if [[ "${file}" =~ "Ports" ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${file}" == *".sh" && "${file}" != "Base/root/generate_manpages.sh" ]]; then
|
if [[ "${file}" == *".sh" && "${file}" != "Base/root/generate_manpages.sh" ]]; then
|
||||||
files+=("${file}")
|
files+=("${file}")
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue