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 11#! /bin/sh
22set -e
33set -x
4- echo Testing $( git log -1 --oneline)
4+ echo " Testing $( git log -1 --oneline) "
55cargo check
66cargo doc
77cargo 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
1212 echo " It seems like the current checked-out commit is not based on $1 "
1313 exit 1
1414fi
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=""
1414
1515# Run fmt
1616TMP_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
1919 echo " Checking formatting of $file "
20- rustfmt $VERS --edition 2021 --check $file
20+ rustfmt $VERS --edition 2021 --check " $file "
2121done
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ elif [[ "$HOST_PLATFORM" == *darwin* ]]; then
2222 BITCOIND_DL_FILE_NAME=bitcoin-" $BITCOIND_VERSION " -x86_64-apple-darwin.tar.gz
2323 BITCOIND_DL_HASH=" 1acfde0ec3128381b83e3e5f54d1c7907871d324549129592144dd12a821eff1"
2424else
25- echo " \n\nUnsupported platform: $HOST_PLATFORM Exiting.."
25+ printf " \n\n"
26+ echo " Unsupported platform: $HOST_PLATFORM Exiting.."
2627 exit 1
2728fi
2829
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ VERS=""
1414
1515# Run fmt
1616TMP_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
1919 echo " Formatting $file ..."
20- rustfmt $VERS --edition 2021 $file
20+ rustfmt $VERS --edition 2021 " $file "
2121done
You can’t perform that action at this time.
0 commit comments