Skip to content

Commit 8d0fff7

Browse files
committed
Fix deploy script fails, when build directory does not exist
1 parent 9f800e7 commit 8d0fff7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
### Fixed
2222

2323
* Broken link to `isset()`, in Objects `isset()` documentation.
24+
* `deploy.docs.sh` fails when `.build` directory does not exist.
2425

2526
## [0.5.0] - 2023-04-09
2627

deploy-docs.sh

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ repository="[email protected]:aedart/ion.git"
88
branch="main:gh-pages"
99
build_directory=".build"
1010

11+
# Create build dir, if needed.
12+
mkdir -p "$build_directory"
13+
1114
# Clear the build directory, but keep the directory
1215
cd "$build_directory"
1316
find . -type f -delete

0 commit comments

Comments
 (0)