Skip to content

Instantly share code, notes, and snippets.

@jellemdekker
jellemdekker / build_nginx.sh
Created April 19, 2019 08:27
Automatic version number discovery
#!/usr/bin/env bash
# Run as root or with sudo
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root or with sudo."
exit 1
fi
# Make script exit if a simple command fails and
# Make script print commands being executed
set -e -x