mirror of
https://codeberg.org/canoeboot/cbmk.git
synced 2025-05-06 15:25:13 +01:00
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>
This commit is contained in:
parent
31e089aff3
commit
9339c6f3fd
1 changed files with 7 additions and 4 deletions
11
build
11
build
|
@ -70,12 +70,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}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue