Skip to content

Commit 96fc7a2

Browse files
author
Sebastien Stormacq
committed
fix shell check
1 parent df291d8 commit 96fc7a2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/check-license.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ paths_with_missing_license=( )
6565
# fi
6666
# file_paths=$(echo "$file_excludes" | tr '\n' '\0' | xargs -0 -I% printf '":(exclude)%" '| xargs git ls-files)
6767
file_paths=$(tr '\n' '\0' < .licenseignore | xargs -0 -I% printf '":(exclude)%" '| xargs git ls-files ":(exclude).licenseignore" ":(exclude).license_header_template" )
68-
echo $file_paths
68+
echo "${file_paths}"
6969

7070
while IFS= read -r file_path; do
7171
file_basename=$(basename -- "${file_path}")

scripts/test-coverage.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
##===----------------------------------------------------------------------===##
1616

1717
BIN_PATH="$(swift build --show-bin-path)"
18-
XCTEST_PATH="$(find ${BIN_PATH} -name '*.xctest')"
18+
XCTEST_PATH=$(find "${BIN_PATH}" -name '*.xctest')
1919
COV_BIN=$XCTEST_PATH
2020

2121
if [[ "$OSTYPE" == "darwin"* ]]; then
22-
f="$(basename $XCTEST_PATH .xctest)"
22+
f=$(basename "${XCTEST_PATH}" .xctest)
2323
COV_BIN="${COV_BIN}/Contents/MacOS/$f"
2424
LLVM_COV="/opt/homebrew/opt/llvm/bin/llvm-cov"
2525
else
2626
echo "Unsupported OS: $OSTYPE"
27-
exit -1
27+
exit 1
2828
fi
2929

3030
${LLVM_COV} report \

0 commit comments

Comments
 (0)