fix(dev-infra): move function before use

move err function above where it is first called
This commit is contained in:
Rob Wall 2022-10-01 01:55:06 -05:00
parent 5ee9425ad4
commit 0e78a1148c
8 changed files with 32 additions and 32 deletions

View file

@ -2,6 +2,10 @@
setupVars="/etc/pivpn/wireguard/setupVars.conf"
err() {
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2
}
if [[ ! -f "${setupVars}" ]]; then
err "::: Missing setup vars file!"
exit 1
@ -10,10 +14,6 @@ fi
# shellcheck disable=SC1090
source "${setupVars}"
err() {
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2
}
helpFunc() {
echo "::: Remove a client conf profile"
echo ":::"