mirror of
https://github.com/pivpn/pivpn.git
synced 2025-05-14 11:54:09 +02: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
|
@ -6,6 +6,10 @@ screen_size="$(stty size 2> /dev/null || echo 24 80)"
|
|||
rows="$(echo "${screen_size}" | awk '{print $1}')"
|
||||
columns="$(echo "${screen_size}" | awk '{print $2}')"
|
||||
|
||||
err() {
|
||||
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2
|
||||
}
|
||||
|
||||
# Divide by two so the dialogs take up half of the screen, which looks nice.
|
||||
r=$((rows / 2))
|
||||
c=$((columns / 2))
|
||||
|
@ -69,10 +73,6 @@ if [[ "${PLAT}" == 'Alpine' ]]; then
|
|||
CHECK_PKG_INSTALLED='apk --no-cache info -e'
|
||||
fi
|
||||
|
||||
err() {
|
||||
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2
|
||||
}
|
||||
|
||||
checkbackupdir() {
|
||||
# Disabling shellcheck error $install_home sourced from $setupVars
|
||||
# shellcheck disable=SC2154
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue