index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-11-01 09:59:45 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-11-01 09:59:45 +0100 |
commit | 05a43c23b36c4b68a246bc69fa0d699a3ec469fb (patch) | |
tree | 026314699b7f4de4f7bd52f00d2a1e13ea06d5db /bin/build-master-status | |
parent | 4e67e6d62a91cba3f2f54401bba073b601db82d5 (diff) |
-rwxr-xr-x | bin/build-master-status | 15 |
diff --git a/bin/build-master-status b/bin/build-master-status index f901d0a..0e83d5b 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -122,7 +122,7 @@ testing=$( ( find "${work_dir}/build-list.loops" -maxdepth 1 -regextype grep \ -regex '.*/loop_[0-9]\+' \ - -exec cat {} \; | \ + -exec cat '{}' \; | \ sort -u find "${work_dir}/package-states/" -maxdepth 1 -name '*.broken' -printf '%f\n' | \ sed 's|\(\.[^.]\+\)\{4\}||' | \ @@ -146,13 +146,14 @@ locked=$( wc -l ) loops=$( - find "${work_dir}/build-list.loops" -maxdepth 1 | \ - grep -c '/loop_[0-9]\+$' -) || true + find "${work_dir}/build-list.loops" -maxdepth 1 -regextype grep \ + -regex '.*/loop_[0-9]\+' | \ + wc -l +) looped_packages=$( - find "${work_dir}/build-list.loops" -maxdepth 1 | \ - grep '/loop_[0-9]\+$' | \ - xargs -r cat | \ + find "${work_dir}/build-list.loops" -maxdepth 1 -regextype grep \ + -regex '.*/loop_[0-9]\+' \ + -exec cat '{}' \; | \ sort -u | \ wc -l ) |