Skip to content

Commit

Permalink
Fix misc shellcheck complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Apr 25, 2024
1 parent 0e55d3f commit baf30a6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ci/check-compiles.sh
@@ -1,7 +1,7 @@
#!/bin/sh
set -e
set -x
echo Testing $(git log -1 --oneline)
echo "Testing $(git log -1 --oneline)"
cargo check
cargo doc
cargo doc --document-private-items
Expand Down
2 changes: 1 addition & 1 deletion ci/check-each-commit.sh
Expand Up @@ -12,4 +12,4 @@ if [ "$(git log --pretty="%H %D" | grep "^[0-9a-f]*.* $1")" = "" ]; then
echo "It seems like the current checked-out commit is not based on $1"
exit 1
fi
git rebase --exec ci/check-compiles.sh $1
git rebase --exec ci/check-compiles.sh "$1"
3 changes: 2 additions & 1 deletion ci/download_bitcoind_electrs.sh
Expand Up @@ -22,7 +22,8 @@ elif [[ "$HOST_PLATFORM" == *darwin* ]]; then
BITCOIND_DL_FILE_NAME=bitcoin-"$BITCOIND_VERSION"-x86_64-apple-darwin.tar.gz
BITCOIND_DL_HASH="1acfde0ec3128381b83e3e5f54d1c7907871d324549129592144dd12a821eff1"
else
echo "\n\nUnsupported platform: $HOST_PLATFORM Exiting.."
printf "\n\n"
echo "Unsupported platform: $HOST_PLATFORM Exiting.."
exit 1
fi

Expand Down
6 changes: 3 additions & 3 deletions ci/rustfmt.sh
Expand Up @@ -6,8 +6,8 @@ set -eox pipefail

# Run fmt
TMP_FILE=$(mktemp)
find . -name '*.rs' -type f |sort >$TMP_FILE
for file in $(comm -23 $TMP_FILE rustfmt_excluded_files); do
find . -name '*.rs' -type f |sort >"$TMP_FILE"
for file in $(comm -23 "$TMP_FILE" rustfmt_excluded_files); do
echo "Checking formatting of $file"
rustfmt +1.63.0 --check $file
rustfmt +1.63.0 --check "$file"
done

0 comments on commit baf30a6

Please sign in to comment.