fix(dev-infra): move source to before var ref

move file sourcing above first references to the variables it loads
This commit is contained in:
rwall 2022-10-19 16:48:51 -05:00 committed by GitHub
parent ab1fe20399
commit c25e82fc0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,12 +6,13 @@ pivpnPERSISTENTKEEPALIVE=""
pivpnDNS2="" pivpnDNS2=""
setupVars="/etc/pivpn/wireguard/setupVars.conf" setupVars="/etc/pivpn/wireguard/setupVars.conf"
# shellcheck disable=SC2154
userGroup="${install_user}:${install_user}"
# shellcheck disable=SC1090 # shellcheck disable=SC1090
source "${setupVars}" source "${setupVars}"
# shellcheck disable=SC2154
userGroup="${install_user}:${install_user}"
### Functions ### Functions
err() { err() {
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2 echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2