Skip to content

Instantly share code, notes, and snippets.

@devsli
devsli / install_pptp_client_ubuntu.sh
Last active September 6, 2019 12:59 — forked from beherca/install_pptp_client_ubuntu.sh
Install PPTP Client on Ubuntu
#!/bin/bash
# For detail introduction, please see http://www.jamescoyle.net/how-to/963-set-up-linux-pptp-client-from-the-terminal
# exit when error occur
set -o errexit
set -o nounset
# Bash will remember & return the highest exitcode in a chain of pipes.
# This way you can catch the error in case mysqldump fails in `mysqldump |gzip`
set -o pipefail