Skip to content

Commit

Permalink
Added non-interactive checkout mode (to hopefully fix circleci finally)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyyrylainen committed Aug 5, 2018
1 parent 20677f7 commit 8c8b0cf
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions SetupThrive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,25 @@ def parseExtraArgs

info "Checking assets"

isInteractive = $stdout.isatty

if not File.exist? "assets"

info "Getting assets"

params = ["svn", "checkout", "--username", $svnUser]

if !isInteractive
params.push "--non-interactive"
end

if $svnPassword
system("svn", "checkout", "--username", $svnUser, "--password", $svnPassword,
WantedURL, "assets")
else
system("svn", "checkout", "--username", $svnUser, WantedURL, "assets")
params.push("--password", $svnPassword)
end

params.push(WantedURL, "assets")

system(*params)

if $?.exitstatus != 0
onError "Failed to get thrive assets repository"
Expand Down

0 comments on commit 8c8b0cf

Please sign in to comment.