Skip to content

Instantly share code, notes, and snippets.

#!/bin/env bash
set -e -o pipefail
latest_nginx=$(curl -L http://nginx.org/en/download.html | egrep -o "nginx\-[0-9.]+\.tar[.a-z]*" | head -n 1)
cd /tmp
git clone --depth=1 https://boringssl.googlesource.com/boringssl &
(curl -fLRO "http://nginx.org/download/${latest_nginx}" && tar -xaf "${latest_nginx}") &
wait