Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace backticks #3795

Merged
merged 2 commits into from
Jul 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions scripts/build/clone_guides.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,14 @@ def directory_exists?(repo_name)
# Clone static & interactive guides that are ready to be published to openliberty.io
if repo_name.start_with?('iguide') || repo_name.start_with?('guide')
# Clone the guides, using the dev branch for travis and prod for all other environments.
`git clone https://github.com/OpenLiberty/#{repo_name}.git -b #{guide_branch} src/main/content/guides/#{repo_name}`

system("git","clone","https://github.com/OpenLiberty/#{repo_name}.git","-b","#{guide_branch}","src/main/content/guides/#{repo_name}")
# # Clone the fallback branch if the guide_branch does not exist for this guide repo.
if !(directory_exists?(repo_name))
`git clone https://github.com/OpenLiberty/#{repo_name}.git -b #{fallback_guide_branch} src/main/content/guides/#{repo_name}`
system("git","clone","https://github.com/OpenLiberty/#{repo_name}.git","-b","#{fallback_guide_branch}","src/main/content/guides/#{repo_name}")
end

# Clone the default branch if the fallback_guide_branch does not exist for this guide repo.
if !(directory_exists?(repo_name))
`git clone https://github.com/OpenLiberty/#{repo_name}.git src/main/content/guides/#{repo_name}`
system("git","clone","https://github.com/OpenLiberty/#{repo_name}.git","src/main/content/guides/#{repo_name}")
end
end
if ENV['DRAFT_SITE'] || ENV['GUIDES_DRAFT_SITE']
Expand Down
Loading