From 3d2766d76c19a7e7216959777c534be3e9842468 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski Date: Sat, 30 Nov 2024 21:25:32 +0000 Subject: [PATCH] Ensure directory exists before `cd`-ing to it. --- scripts/regenerate_test_rustdocs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/regenerate_test_rustdocs.sh b/scripts/regenerate_test_rustdocs.sh index e9cffba3..1ae67e7c 100755 --- a/scripts/regenerate_test_rustdocs.sh +++ b/scripts/regenerate_test_rustdocs.sh @@ -53,6 +53,7 @@ fi PLACEHOLDER_DIR="$TARGET_DIR/placeholder" rm -rf "$PLACEHOLDER_DIR" +mkdir -p "$TARGET_DIR" pushd "$TARGET_DIR" cargo new --lib placeholder cd placeholder