Skip to content

Commit

Permalink
Merge pull request #3798 from OpenLiberty/backtick_replace
Browse files Browse the repository at this point in the history
Replace backticks
  • Loading branch information
SteveSamJacob19 authored Jul 8, 2024
2 parents 5fc6c14 + 6bc8a5f commit fd2b28e
Showing 1 changed file with 3 additions and 5 deletions.
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

0 comments on commit fd2b28e

Please sign in to comment.