diff options
-rwxr-xr-x | build | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -68,20 +68,15 @@ install_packages() git_init() { - [ -L ".git" ] && $err "Reference .git is a symlink" + [ -L ".git" ] && return 1 [ -e ".git" ] && return 0 eval "$(setvars "$(date -Rud @${versiondate})" cdate _nogit)" - 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 init || return 1 + git add -A . || return 1 git commit -m "${projectname} ${version}" --date "${cdate}" \ - --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}" \ - 1>/dev/null 2>/dev/null || \ - $err "${PWD}: cannot git-tag ${projectname}/${version}" + --author="xbmk <xbmk@example.com>" || return 1 + git tag -a "${version}" -m "${projectname} ${version}" || return 1 } mkrelease() |