mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-22 07:10:11 +00:00
fix(dev-infra): move function before use
move err function above where it is first called
This commit is contained in:
parent
5ee9425ad4
commit
0e78a1148c
8 changed files with 32 additions and 32 deletions
|
@ -26,6 +26,10 @@ setupConfigDir="/etc/pivpn"
|
|||
pivpnFilesDir="/usr/local/src/pivpn"
|
||||
pivpnScriptDir="/opt/pivpn"
|
||||
|
||||
err() {
|
||||
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2
|
||||
}
|
||||
|
||||
PLAT="$(grep -sEe '^NAME\=' /etc/os-release \
|
||||
| sed -E -e "s/NAME\=[\'\"]?([^ ]*).*/\1/")"
|
||||
|
||||
|
@ -85,10 +89,6 @@ fi
|
|||
# shellcheck disable=SC1090
|
||||
source "${setupVars}"
|
||||
|
||||
err() {
|
||||
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2
|
||||
}
|
||||
|
||||
### FIXME: introduce global lib
|
||||
spinner() {
|
||||
local pid="${1}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue