Start multiple git-build in parallel to speed up things

This commit is contained in:
southerntofu 2020-04-27 11:47:57 +02:00
parent f9c52767c7
commit fefc9643bc
1 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,11 @@ if [[ $EUID != 0 ]]; then
exit $?
fi
if [[ $# = 0 ]]; then
echo "BUG? How did you call me without argument?"
exit 1
fi
# Ok now we're root
from_hex() {
@ -46,7 +51,7 @@ for i in $db/"$rhex".*; do
task="$(basename "$f" .source)"
echo "$task for $user"
bin="$(which git-build.sh)"
sudo -u "$user" bash "$bin" "$task"
sudo -u "$user" bash "$bin" "$task"&
fi
done