and again with xargs
This commit is contained in:
parent
b867b9e80d
commit
0b796faf34
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ task_update() {
|
||||||
package_count_before="$(find ${dir_repo} -name "*.deb" | wc -l)";
|
package_count_before="$(find ${dir_repo} -name "*.deb" | wc -l)";
|
||||||
export -f _symlink_deb;
|
export -f _symlink_deb;
|
||||||
cd "${dir_repo}" || exit 2;
|
cd "${dir_repo}" || exit 2;
|
||||||
find "../${dir_sources}" -type f -name "*.deb" -print0 | xargs --null -n1 -I{} bash -c '_symlink_deb "{}"';
|
find "../${dir_sources}" -type f -name "*.deb" -print0 | xargs --null -I{} bash -c '_symlink_deb "{}"';
|
||||||
exit_code="$?";
|
exit_code="$?";
|
||||||
cd - || exit 2;
|
cd - || exit 2;
|
||||||
package_count_after="$(find ${dir_repo} -name "*.deb" | wc -l)";
|
package_count_after="$(find ${dir_repo} -name "*.deb" | wc -l)";
|
||||||
|
@ -189,7 +189,7 @@ _generate_summary() {
|
||||||
# column: Align all the columns nicely - ref https://unix.stackexchange.com/a/468048/64687
|
# column: Align all the columns nicely - ref https://unix.stackexchange.com/a/468048/64687
|
||||||
|
|
||||||
export -f __analyse_package;
|
export -f __analyse_package;
|
||||||
find "${dir_sources}" -type f -name "*.deb" -print0 | xargs -0 -n1 -P "$(nproc)" -I{} bash -c '__analyse_package "{}"' | sort -k1,2V | uniq | column -t -s "$(printf '\t')";
|
find "${dir_sources}" -type f -name "*.deb" -print0 | xargs -0 -P "$(nproc)" -I{} bash -c '__analyse_package "{}"' | sort -k1,2V | uniq | column -t -s "$(printf '\t')";
|
||||||
}
|
}
|
||||||
|
|
||||||
task_generate-summary() {
|
task_generate-summary() {
|
||||||
|
|
Loading…
Reference in a new issue