fix doc generation script (#1773)

motivation: generate docs

changes: use a more robust path to source-kitten
This commit is contained in:
tomer doron authored and GitHub committed 2021-03-03 07:49:55 +00:00
1 parent 990b82d698
commit bd41bd5cf5
1 file changed
+1 -1
+1 -1
View File
@@ -31,7 +31,7 @@ if [[ "$(uname -s)" == "Linux" ]]; then
if [[ ! -d "$source_kitten_source_path" ]]; then
git clone https://github.com/jpsim/SourceKitten.git "$source_kitten_source_path"
fi
source_kitten_path="$source_kitten_source_path/.build/x86_64-unknown-linux/debug"
source_kitten_path="$source_kitten_source_path/.build/debug"
if [[ ! -d "$source_kitten_path" ]]; then
rm -rf "$source_kitten_source_path/.swift-version"
cd "$source_kitten_source_path" && swift build && cd "$root_path"