Fix upgrade script-library check

The script-library check is supposed to use a function
available in the library in order to validate that the
library has been loaded, and to fall back to loading
the library.

Currently this does not happen, so the library is never
loaded.

Change-Id: I8ce788448026fd26ade0c4e8b2895a0c89e62604
This commit is contained in:
Jesse Pretorius
2017-03-07 17:39:45 +00:00
parent c2a721fa55
commit 20b068ddaf

View File

@@ -100,7 +100,10 @@ function check_for_current {
function pre_flight {
## Library Check -------------------------------------------------------------
echo "Checking for required libraries." 2> /dev/null || source "$(dirname "${0}")/scripts-library.sh"
info_block "Checking for required libraries." 2> /dev/null ||
source ${SCRIPTS_PATH}/scripts-library.sh
## Pre-flight Check ----------------------------------------------------------
# Clear the screen and make sure the user understands whats happening.
clear