Skip to content

Commit 2353252

Browse files
committed
fix scripts to pass ci check
Signed-off-by: Chen Miao <[email protected]>
1 parent 2640b55 commit 2353252

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

scripts/check_ci.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,17 @@ echo ""
153153
# echo "✅ 'mdbook-trpl' installed successfully"
154154
# echo ""
155155

156+
echo "🔤 Running spellcheck all scripts..."
157+
158+
find . -name '*.sh' -print0 | xargs -0 shellcheck || {
159+
echo "❌ Error: 'find . -name '*.sh' -print0 | xargs -0 shellcheck' failed"
160+
popd > /dev/null 2>&1 || true
161+
exit 1
162+
}
163+
164+
echo "✅ Spellcheck script ran successfully"
165+
echo ""
166+
156167
# ========================================
157168
# Step 6: Run spellcheck script
158169
# ========================================

scripts/linkcheck.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ then
9898
nightly_hash=$(rustc +nightly -Vv | grep commit-hash | cut -f2 -d" ")
9999
url="https://raw.githubusercontent.com/rust-lang/rust"
100100
mkdir linkchecker
101-
curl -o linkchecker/Cargo.lock ${url}/${nightly_hash}/Cargo.lock
102-
curl -o linkchecker/Cargo.toml ${url}/${nightly_hash}/src/tools/linkchecker/Cargo.toml
103-
curl -o linkchecker/main.rs ${url}/${nightly_hash}/src/tools/linkchecker/main.rs
101+
curl -o linkchecker/Cargo.lock "${url}/${nightly_hash}/Cargo.lock"
102+
curl -o linkchecker/Cargo.toml "${url}/${nightly_hash}/src/tools/linkchecker/Cargo.toml"
103+
curl -o linkchecker/main.rs "${url}/${nightly_hash}/src/tools/linkchecker/main.rs"
104104
fi
105105

106106
echo "Building book \"$book_name\"..."

0 commit comments

Comments
 (0)