mirror of
https://github.com/react/react-native.git
synced 2026-09-28 21:33:11 +08:00
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57898 Changelog: [Internal] ___ Differential Revision: D115564599 fbshipit-source-id: 4714995277556fc60550780e7a911e60eeef2f0d
27 lines
644 B
Bash
Executable File
27 lines
644 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
GITHUB_OWNER=-facebook
|
|
GITHUB_REPO=-react-native
|
|
export GITHUB_OWNER
|
|
export GITHUB_REPO
|
|
|
|
if [ -x "$(command -v shellcheck)" ]; then
|
|
IFS=$'\n'
|
|
|
|
find . \
|
|
-type f \
|
|
-not -path "*node_modules*" \
|
|
-not -path "*third-party*" \
|
|
-not -path "*vendor*" \
|
|
-name '*.sh' \
|
|
-exec sh -c 'shellcheck "$1"' -- {} \;
|
|
|
|
else
|
|
echo 'shellcheck is not installed. Install it via your package manager, e.g. `brew install shellcheck`.'
|
|
exit 1
|
|
fi
|