diff options
author | Erich Eckner <git@eckner.net> | 2018-02-26 19:38:03 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-26 19:38:03 +0100 |
commit | 3c876e32b322c15326b5835bb4fef1a02adbcbb6 (patch) | |
tree | 2301b73ff12e8c517cf6750c6de3c5f1e9047cf9 /lib | |
parent | d3e37311cfd3045a222230d867838116d484a2e9 (diff) | |
download | builder-3c876e32b322c15326b5835bb4fef1a02adbcbb6.tar.xz |
lib/common-functions: save date to command-log; skip logging if buildmaster is insane
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/common-functions | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/common-functions b/lib/common-functions index 80f252c..26151d1 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -15,14 +15,16 @@ if [ -z "${base_dir}" ]; then . 'conf/default.conf' fi -{ - printf 'sourcing common-functions for %s\n' "$0" - printf '%s parameters:' "$#" - printf ' "%s"' "$@" - printf '\n' -} >> \ - "${work_dir}/command-log" - +if [ ! -s "${work_dir}/build-master-sanity" ]; then + { + date + printf 'sourcing common-functions for %s\n' "$0" + printf '%s parameters:' "$#" + printf ' "%s"' "$@" + printf '\n' + } >> \ + "${work_dir}/command-log" +fi # find_pkgbuilds package repository git_repository git_revision mod_git_revision # find the PKGBUILD and modification of $package from $repository |