switch to a centralized CURLOPT layout

This commit is contained in:
Tobias Schmidl 2018-11-27 09:08:03 +01:00
parent 69b71e9b27
commit ba6ae6a6f7
2 changed files with 8 additions and 6 deletions

View file

@ -1,9 +1,10 @@
#! /bin/sh
#! /bin/bash
# fail immediately on error
set -e
CURLOPT=${CURLOPT:-"--location --remote-time --show-error --silent --fail --tlsv1.2"}
# root part
curl -RLSsf1 https://github.com/schtobia/bootstrap/raw/master/bootstrap-root.sh | sudo -SEH bash -
curl $CURLOPT https://github.com/schtobia/bootstrap/raw/master/bootstrap-root.sh | sudo -SEH bash -
# userspace part
curl -RLSsf1 https://github.com/schtobia/bootstrap/raw/master/bootstrap-user.sh | bash -
curl $CURLOPT https://github.com/schtobia/bootstrap/raw/master/bootstrap-user.sh | bash -