index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2023-07-08 10:34:28 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-07-08 10:34:28 +0200 |
commit | fa64e92fc1f2cd7cc87b87f0d787c0ac4751d607 (patch) | |
tree | e6559457376fc6e6313f99c7e859f4e2269f1957 /bin/harvest-commit-times | |
parent | 4d42e82deaeed372f42a59413b319f90140e8c91 (diff) |
-rwxr-xr-x | bin/harvest-commit-times | 9 |
diff --git a/bin/harvest-commit-times b/bin/harvest-commit-times index 21855ff..24e1616 100755 --- a/bin/harvest-commit-times +++ b/bin/harvest-commit-times @@ -12,6 +12,7 @@ usage() { >&2 echo ' sources from git and put them into the database' >&2 echo '' >&2 echo 'possible options:' + >&2 echo ' -f|--force: Do not abort on error.' >&2 echo ' -h|--help: Show this help and exit.' >&2 echo ' -w|--wait: If necessary, wait for lock blocking.' [ -z "$1" ] && exit 1 || exit "$1" @@ -26,9 +27,13 @@ eval set -- "$( )" block_flag='-n' +force=false; while true; do case "$1" in + -f|--force) + force=true + ;; -h|--help) usage 0 ;; @@ -119,7 +124,9 @@ while true; do >&2 printf '%s ' \ "${pkgbase}" "${git_revision}" "${mod_git_revision}" "${repository}" "${architecture}" >&2 printf '\n' - exit 2 + if ! ${force}; then + exit 2 + fi fi done > \ "${tmp_file}" |