summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-24 15:00:46 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-24 15:00:46 +0100
commit5d87eea77c5a6db9263f08052700bd39b7c2d4c5 (patch)
tree9820035f90db647baf2fa783c24cc3a4ff40a726
parentb8ec7d56404481c6917107f980e8ff90aaf13781 (diff)
build: hide git-init output
following on from the previous commit, if you run something like "./build roms list" when running for the first time from a codeberg tarball, the output of the git commands will be included in the output hide this output Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xbuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/build b/build
index b28ce954..d70b44ff 100755
--- a/build
+++ b/build
@@ -75,12 +75,15 @@ git_init()
[ -e ".git" ] && return 0
eval "$(setvars "$(date -Rud @${versiondate})" cdate _nogit)"
- git init || $err "${PWD}: cannot initialise Git repository"
- git add -A . || $err "${PWD}: cannot add files to Git repository"
+ git init 1>/dev/null 2>/dev/null || \
+ $err "${PWD}: cannot initialise Git repository"
+ git add -A . 1>/dev/null 2>/dev/null || \
+ $err "${PWD}: cannot add files to Git repository"
git commit -m "${projectname} ${version}" --date "${cdate}" \
- --author="xbmk <xbmk@example.com>" || \
+ --author="xbmk <xbmk@example.com>" 1>/dev/null 2>/dev/null || \
$err "$PWD: can't commit ${projectname}/${version}, date $cdate"
- git tag -a "${version}" -m "${projectname} ${version}" || \
+ git tag -a "${version}" -m "${projectname} ${version}" \
+ 1>/dev/null 2>/dev/null || \
$err "${PWD}: cannot git-tag ${projectname}/${version}"
}