File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff 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# ========================================
Original file line number Diff line number Diff line change 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"
104104fi
105105
106106echo " Building book \" $book_name \" ..."
You can’t perform that action at this time.
0 commit comments