Skip to content

Commit 75852fa

Browse files
committed
shell lint
1 parent b272378 commit 75852fa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/scripts/checkCoverageChanges.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -euo pipefail
66
# -----------------------------
77
# The PR branch comes from either the base repo or a fork.
88
# We need the base repository's main branch for comparison.
9-
git remote add upstream https://github.com/${GITHUB_REPOSITORY}.git 2>/dev/null || true
9+
git remote add upstream "https://github.com/${GITHUB_REPOSITORY}.git" 2>/dev/null || true
1010

1111
# -----------------------------
1212
# 2. Attempt shallow fetch first
@@ -52,14 +52,14 @@ CHANGED_FILES=()
5252
for file in "${ALL_CHANGED_FILES[@]}"; do
5353
# Exclude directories
5454
if [[ "$file" =~ ^src/(CONST|languages|setup|stories|styles|types)/ ]]; then
55-
echo "Skipping excluded directory: $file"
55+
echo "Skipping excluded directory: \"$file\""
5656
continue
5757
fi
5858

5959
# Exclude specific files in src root
60-
filename=$(basename "$file")
60+
filename="$(basename "$file")"
6161
if [[ "$filename" =~ ^(App\.tsx|CONFIG\.ts|Expensify\.tsx|HybridAppHandler\.tsx|NAICS\.ts|NAVIGATORS\.ts|ONYXKEYS\.ts|ROUTES\.ts|SCREENS\.ts|SplashScreenStateContext\.tsx|TIMEZONES\.ts)$ ]]; then
62-
echo "Skipping excluded file: $file"
62+
echo "Skipping excluded file: \"$file\""
6363
continue
6464
fi
6565

0 commit comments

Comments
 (0)