Faster build (download archives instead of cloning)

This commit is contained in:
Adam Stankiewicz
2015-07-18 23:47:12 +02:00
parent c154d82557
commit d6bc08610b

2
build
View File

@@ -18,7 +18,7 @@ download() {
path="$(printf "$pack" | cut -d ':' -f 2)"
dir="tmp/$(printf "$path" | cut -d '/' -f 2)"
rm -rf "$dir"
(git clone -q --recursive "https://github.com/$path.git" "$dir" && printf '.') &
(mkdir -p "$dir" && curl --silent -L https://codeload.github.com/$path/tar.gz/master | tar -zx -C "$dir" --strip 1 && printf '.') &
done
wait