Skip to content

Commit

Permalink
Merge pull request #3795 from OpenLiberty/replace_backtick
Browse files Browse the repository at this point in the history
Replace backticks
  • Loading branch information
SteveSamJacob19 authored Jul 5, 2024
2 parents c2aabd3 + 6e109e5 commit 5492637
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 5492637

Please sign in to comment.