Browse Source

Remove duplicated code (info logs)

pull/215/head
marpme 1 year ago
parent
commit
8e12e01dff
No account linked to committer's email address
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      bin/gbuild

+ 2
- 3
bin/gbuild View File

@@ -159,12 +159,11 @@ EOF" if build_desc["sudo"] and @options[:allow_sudo]
script.puts "cd build"
script.puts build_desc["script"]
end

info "Running build script (log in var/build.log)"
if ENV["CI"]
info "Running build script"
system! "on-target setarch #{@arches[arch]} bash -x < var/build-script 2>&1 | tee var/build.log"
else
info "Running build script (log in var/build.log)"
system! "on-target setarch #{@arches[arch]} bash -x < var/build-script > var/build.log 2>&1"
end
end

Loading…
Cancel
Save