File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,12 @@ exec 1>&2
22
22
# Cross platform projects tend to avoid non-ASCII filenames; prevent
23
23
# them from being added to the repository. We exploit the fact that the
24
24
# printable range starts at the space character and ends with tilde.
25
- # disable the check to quoting the $(...) command
26
- # shellcheck disable=SC2046
27
25
if [ " $allownonascii " != " true" ] &&
28
26
# Note that the use of brackets around a tr range is ok here, (it's
29
27
# even required, for portability to Solaris 10's /usr/bin/tr), since
30
28
# the square bracket bytes happen to fall in the designated range.
31
- test $( git diff --cached --name-only --diff-filter=A -z " $against " |
32
- LC_ALL=C tr -d ' [ -~]\0' | wc -c) ! = 0
29
+ test " $( git diff --cached --name-only --diff-filter=A -z " $against " |
30
+ LC_ALL=C tr -d ' [ -~]\0' | wc -c) " ! = 0
33
31
then
34
32
cat << \EOF
35
33
Error: Attempt to add a non-ASCII file name.
49
47
git diff-index --check --cached " $against " -- || exit 1
50
48
51
49
# Check that code lints cleanly.
52
- # disable the check to quoting the $(...) command
53
- # shellcheck disable=SC2046
54
- cargo +$( cat ./nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings || exit 1
50
+ cargo +" $( cat ./nightly-version) " clippy --workspace --all-targets --all-features -- --deny warnings || exit 1
You can’t perform that action at this time.
0 commit comments