Skip to content

Commit 9807fad

Browse files
Stop directory-not-there errors in dox.sh
1 parent fcae5a7 commit 9807fad

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ci/dox.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
set -ex
88

9-
TARGET_DOC_DIR=target/doc
10-
README=README.md
11-
PLATFORM_SUPPORT=platform-support.md
9+
TARGET_DOC_DIR="target/doc"
10+
README="README.md"
11+
PLATFORM_SUPPORT="platform-support.md"
1212

13-
rm -rf $TARGET_DOC_DIR
14-
mkdir -p $TARGET_DOC_DIR
13+
rm -rf "$TARGET_DOC_DIR"
14+
mkdir -p "$TARGET_DOC_DIR"
1515

1616
if ! rustc --version | grep -E "nightly" ; then
1717
echo "Building the documentation requires a nightly Rust toolchain"
@@ -57,6 +57,7 @@ while read -r target; do
5757
--no-default-features --features extra_traits
5858
fi
5959

60+
mkdir -p "${TARGET_DOC_DIR}/${target}"
6061
cp -r "target/${target}/doc" "${TARGET_DOC_DIR}/${target}"
6162

6263
echo "* [${target}](${target}/libc/index.html)" >> $PLATFORM_SUPPORT

0 commit comments

Comments
 (0)