Start multiple git-build in parallel to speed up things
This commit is contained in:
parent
f9c52767c7
commit
fefc9643bc
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue