TT#120752 Fix b821e00: move main function load close to validation

It produces no functional changes but align code better with
Sipwise/ngcpcfg style. We normally check the file availability and
load the file the next line.

Change-Id: Ifebddc452f7701fd02a85a8d3273edc89b7fd21a
mr10.0
Alexander Lutay 5 years ago
parent a3017f9db3
commit 6a733861b0

@ -14,6 +14,9 @@ if ! [ -r "${FUNCTIONS}"/main ] ; then
exit 1
fi
# shellcheck disable=SC1090
. "${FUNCTIONS}"/main
if [ -z "${EDITOR:-}" ] ; then
if [ -x "/usr/bin/vim" ]; then
EDITOR="/usr/bin/vim"
@ -23,9 +26,6 @@ if [ -z "${EDITOR:-}" ] ; then
fi
fi
# shellcheck disable=SC1090
. "${FUNCTIONS}"/main
# main script
RC=0
file=""

Loading…
Cancel
Save