File tree Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
set -e
3
3
set -x
4
- echo Testing $( git log -1 --oneline)
4
+ echo " Testing $( git log -1 --oneline) "
5
5
cargo check
6
6
cargo doc
7
7
cargo doc --document-private-items
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ if [ "$(git log --pretty="%H %D" | grep "^[0-9a-f]*.* $1")" = "" ]; then
12
12
echo " It seems like the current checked-out commit is not based on $1 "
13
13
exit 1
14
14
fi
15
- git rebase --exec ci/check-compiles.sh $1
15
+ git rebase --exec ci/check-compiles.sh " $1 "
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ VERS=""
14
14
15
15
# Run fmt
16
16
TMP_FILE=$( mktemp)
17
- find . -name ' *.rs' -type f | sort > $TMP_FILE
18
- for file in $( comm -23 $TMP_FILE rustfmt_excluded_files) ; do
17
+ find . -name ' *.rs' -type f | sort > " $TMP_FILE "
18
+ for file in $( comm -23 " $TMP_FILE " rustfmt_excluded_files) ; do
19
19
echo " Checking formatting of $file "
20
- rustfmt $VERS --edition 2021 --check $file
20
+ rustfmt $VERS --edition 2021 --check " $file "
21
21
done
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ elif [[ "$HOST_PLATFORM" == *darwin* ]]; then
22
22
BITCOIND_DL_FILE_NAME=bitcoin-" $BITCOIND_VERSION " -x86_64-apple-darwin.tar.gz
23
23
BITCOIND_DL_HASH=" 1acfde0ec3128381b83e3e5f54d1c7907871d324549129592144dd12a821eff1"
24
24
else
25
- echo " \n\nUnsupported platform: $HOST_PLATFORM Exiting.."
25
+ printf " \n\n"
26
+ echo " Unsupported platform: $HOST_PLATFORM Exiting.."
26
27
exit 1
27
28
fi
28
29
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ VERS=""
14
14
15
15
# Run fmt
16
16
TMP_FILE=$( mktemp)
17
- find . -name ' *.rs' -type f | sort > $TMP_FILE
18
- for file in $( comm -23 $TMP_FILE rustfmt_excluded_files) ; do
17
+ find . -name ' *.rs' -type f | sort > " $TMP_FILE "
18
+ for file in $( comm -23 " $TMP_FILE " rustfmt_excluded_files) ; do
19
19
echo " Formatting $file ..."
20
- rustfmt $VERS --edition 2021 $file
20
+ rustfmt $VERS --edition 2021 " $file "
21
21
done
You can’t perform that action at this time.
0 commit comments